# Inquiring C++ standard from build target for analyzer config - possible regression, bug or missing documentation?

**URL:** <https://discourse.cmake.org/t/inquiring-c-standard-from-build-target-for-analyzer-config-possible-regression-bug-or-missing-documentation/7584>\
**Category:** Usage\
**Created:** [March 2, 2023, 7:12am UTC](https://discourse.cmake.org/t/inquiring-c-standard-from-build-target-for-analyzer-config-possible-regression-bug-or-missing-documentation/7584 "2023-03-02T07:12:15Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![tambre](https://discourse.cmake.org/user_avatar/discourse.cmake.org/tambre/32/5127_2.png) [@tambre](https://discourse.cmake.org/u/tambre)\
**Post date:** [March 6, 2023, 1:07pm UTC](https://discourse.cmake.org/t/inquiring-c-standard-from-build-target-for-analyzer-config-possible-regression-bug-or-missing-documentation/7584/7 "2023-03-06T13:07:52Z")

</div>

It seems the fix would be to support generator expressions for `<LANG>_CPPCHECK` like we do already for `LINK_LIBRARIES`, `INCLUDE_DIRECTORIES`, `COMPILE_DEFINITIONS`. Seems like it should be just a few lines of code.

@craig.scott Agreed on this approach?

---

_[View the full topic](https://discourse.cmake.org/t/inquiring-c-standard-from-build-target-for-analyzer-config-possible-regression-bug-or-missing-documentation/7584)._
