target-language-featuresΒΆ

  • New CXX_STANDARD and CXX_EXTENSIONS target properties may specify values which CMake uses to compute required compile options such as -std=c++11 or -std=gnu++11. The CMAKE_CXX_STANDARD and CMAKE_CXX_EXTENSIONS variables may be set to initialize the target properties.
  • New COMPILE_FEATURES target property may contain a list of features required to compile a target. CMake uses this information to ensure that the compiler in use is capable of building the target, and to add any necessary compile flags to support language features.
  • New target_compile_features() command allows populating the COMPILE_FEATURES target property, just like any other build variable.

Previous topic

add_custom_command-DEPENDS-genex

Next topic

cpack-deb-compression-types

This Page