search for: cxx_standard

Displaying 1 result from an estimated 1 matches for "cxx_standard".

2016 Oct 20
2
Leveraging newer CMake features for Language standards
...has CMake code to try to detect the various options needed to compile with C++11 support that has been around since prior to the CMake version bump. One of the nicer features that came with the newer required CMake version is that very thing. Rather than try to discern this yourself CMake has the CXX_STANDARD and CXX_STANDARD_REQUIRED target properties. If set appropriately on a given target then the approiate compiler flags for that language standard as known by CMake with be applied. You can set the global default for this by defining in teh cop level CMakeLists.txt: set(CMAKE_CXX_STANDARD 11) set(...