2013-10-13 04:00:24 +04:00
|
|
|
target-language-features
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
* New :prop_tgt:`CXX_STANDARD` and :prop_tgt:`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
|
|
|
|
:variable:`CMAKE_CXX_STANDARD` and :variable:`CMAKE_CXX_EXTENSIONS`
|
|
|
|
variables may be set to initialize the target properties.
|
2014-04-02 17:57:15 +04:00
|
|
|
|
2013-11-04 04:15:43 +04:00
|
|
|
* New :prop_tgt:`C_STANDARD` and :prop_tgt:`C_EXTENSIONS` target
|
|
|
|
properties may specify values which CMake uses to compute required
|
|
|
|
compile options such as ``-std=c11`` or ``-std=gnu11``. The
|
|
|
|
:variable:`CMAKE_C_STANDARD` and :variable:`CMAKE_C_EXTENSIONS`
|
|
|
|
variables may be set to initialize the target properties.
|
|
|
|
|
2014-04-02 17:57:15 +04:00
|
|
|
* New :prop_tgt:`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.
|
2013-10-13 16:25:08 +04:00
|
|
|
|
|
|
|
* New :command:`target_compile_features` command allows populating the
|
|
|
|
:prop_tgt:`COMPILE_FEATURES` target property, just like any other
|
|
|
|
build variable.
|
2014-05-15 13:32:30 +04:00
|
|
|
|
|
|
|
* New ``COMPILE_FEATURES``
|
|
|
|
:manual:`generator expression <cmake-generator-expressions(7)>` allows
|
|
|
|
setting build properties based on available compiler features.
|