# CMake cxx\_std\_\* propagation

**URL:** <https://root-forum.cern.ch/t/cmake-cxx-std-propagation/62623>\
**Category:** Newbie\
**Tags:** cmake\
**Created:** [January 10, 2025, 12:55am UTC](https://root-forum.cern.ch/t/cmake-cxx-std-propagation/62623 "2025-01-10T00:55:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [January 10, 2025, 7:19am UTC](https://root-forum.cern.ch/t/cmake-cxx-std-propagation/62623/2 "2025-01-10T07:19:56Z")

</div>

> [@Compiler flag errors](https://root-forum.cern.ch/t/compiler-flag-errors/61908/5):
>
> Your source code may be “sensitive” to the “ROOT\_CXX\_FLAGS” and “ROOT\_CXX\_STANDARD” variables (which come from [ROOT](https://root.cern/manual/integrate_root_into_my_cmake_project/)). The problem is that you may have (note “undefined”): ROOT\_CXX\_FLAGS -std=c++17 -pipe -fsigned-char -pthread ROOT\_CXX\_STANDARD undefined or (note the missing “-std=c++17”): ROOT\_CXX\_FLAGS -pipe -fsigned-char -pthread ROOT\_CXX\_STANDARD 17 Try the simple “CMakeLists.txt” file from (just execute “cmake .”):

---

_[View the full topic](https://root-forum.cern.ch/t/cmake-cxx-std-propagation/62623)._
