diff options
author | Brad King <brad.king@kitware.com> | 2014-05-22 14:37:48 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-05-22 14:37:48 (GMT) |
commit | 5ce40619db2d89f7cfbc2cd47968346fb22fa795 (patch) | |
tree | a964e2227eb25fa745c719e536a4c8360dc2345e /Help | |
parent | 04fc5dd493b6ccb24972a69641d5e41f1a76bf8e (diff) | |
parent | 0dfe395e3cb1a720c4853087db554a6827feaadb (diff) | |
download | CMake-5ce40619db2d89f7cfbc2cd47968346fb22fa795.zip CMake-5ce40619db2d89f7cfbc2cd47968346fb22fa795.tar.gz CMake-5ce40619db2d89f7cfbc2cd47968346fb22fa795.tar.bz2 |
Merge topic 'COMPILE_FEATURES-genex'
0dfe395e Features: Add COMPILE_FEATURES generator expression.
aa8a6fce cmMakefile: Add methods for checking availability of a feature.
b6dedf03 cmMakefile: Extract CheckNeeded{C,Cxx}Language methods.
8dd129df cmMakefile: Extract CompileFeaturesAvailable method.
6b9b2fff cmMakefile: Extract CompileFeatureKnown method.
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/cmake-generator-expressions.7.rst | 6 | ||||
-rw-r--r-- | Help/release/dev/compile-language-features.rst | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index dfda8dc..9184580 100644 --- a/Help/manual/cmake-generator-expressions.7.rst +++ b/Help/manual/cmake-generator-expressions.7.rst @@ -83,6 +83,12 @@ otherwise expands to nothing. else ``0``. If the policy was not set, the warning message for the policy will be emitted. This generator expression only works for a subset of policies. +``$<COMPILE_FEATURES:feature[,feature]...>`` + ``1`` if all of the ``feature`` features are available for the 'head' + target, and ``0`` otherwise. If this expression is used while evaluating + the link implementation of a target and if any dependency transitively + increases the required :prop_tgt:`C_STANDARD` or :prop_tgt:`CXX_STANDARD` + for the 'head' target, an error is reported. Informational Expressions ========================= diff --git a/Help/release/dev/compile-language-features.rst b/Help/release/dev/compile-language-features.rst index fe72e39..d10e22b 100644 --- a/Help/release/dev/compile-language-features.rst +++ b/Help/release/dev/compile-language-features.rst @@ -22,3 +22,7 @@ target-language-features * New :command:`target_compile_features` command allows populating the :prop_tgt:`COMPILE_FEATURES` target property, just like any other build variable. + +* New ``COMPILE_FEATURES`` + :manual:`generator expression <cmake-generator-expressions(7)>` allows + setting build properties based on available compiler features. |