OBJCXX_EXTENSIONS.rst 868 B

1234567891011121314151617181920
  1. OBJCXX_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 ObjC++ standard level is
  8. controlled by the :prop_tgt:`OBJCXX_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. If the property is not set, and the project has set the :prop_tgt:`CXX_EXTENSIONS`,
  12. the value of :prop_tgt:`CXX_EXTENSIONS` is set for :prop_tgt:`OBJCXX_EXTENSIONS`.
  13. This property is initialized by the value of
  14. the :variable:`CMAKE_OBJCXX_EXTENSIONS` variable if it is set when a target
  15. is created.