Features: Add meta-features requesting awareness of a particular standard
A common use case of `target_compile_features` is simply to specify that the compiler should be run in a mode that is aware of e.g. C++11. Some projects simply specify a particular C++11-only feature to request this. Provide a first-class way to do this by naming features after the corresponding language standard. Record them as always available in the corresponding standard level so that requesting them always ensures that standard (or higher) is used.
Showing
- Help/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.rst 9 additions, 0 deletionsHelp/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.rst
- Help/prop_gbl/CMAKE_C_KNOWN_FEATURES.rst 9 additions, 0 deletionsHelp/prop_gbl/CMAKE_C_KNOWN_FEATURES.rst
- Modules/Compiler/MSVC-CXX.cmake 5 additions, 0 deletionsModules/Compiler/MSVC-CXX.cmake
- Modules/Internal/FeatureTesting.cmake 2 additions, 0 deletionsModules/Internal/FeatureTesting.cmake
- Source/cmake.h 6 additions, 0 deletionsSource/cmake.h
- Tests/CompileFeatures/CMakeLists.txt 2 additions, 0 deletionsTests/CompileFeatures/CMakeLists.txt
Loading
Please register or sign in to comment