CXX_EXTENSIONS.rst 686 B

1234567891011121314151617
  1. CXX_EXTENSIONS
  2. --------------
  3. Boolean specifying whether compiler specific extensions are requested.
  4. This property specifies whether compiler specific extensions should be
  5. used. For some compilers, this results in adding a flag such
  6. as ``-std=gnu++11`` instead of ``-std=c++11`` to the compile line. This
  7. property is ``ON`` by default. The basic C++ standard level is
  8. controlled by the :prop_tgt:`CXX_STANDARD` target property.
  9. See the :manual:`cmake-compile-features(7)` manual for information on
  10. compile features and a list of supported compilers.
  11. This property is initialized by the value of
  12. the :variable:`CMAKE_CXX_EXTENSIONS` variable if it is set when a target
  13. is created.