summaryrefslogtreecommitdiffstats
path: root/Help/manual/cmake-developer.7.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-26 21:42:36 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-29 20:01:40 (GMT)
commit3228fc5049e72e6d7584a6f3cec6055b8a726817 (patch)
tree5525012740e92d95e5721c6b549ef80c091dd6bb /Help/manual/cmake-developer.7.rst
parentea7ca139ea4c3c88e432e722c9cfe1dd86a4359f (diff)
downloadCMake-3228fc5049e72e6d7584a6f3cec6055b8a726817.zip
CMake-3228fc5049e72e6d7584a6f3cec6055b8a726817.tar.gz
CMake-3228fc5049e72e6d7584a6f3cec6055b8a726817.tar.bz2
Features: Define meaning for no language standard default
Define an empty string in CMAKE_<LANG>_STANDARD_DEFAULT to mean that the toolchain has no notion of lanuage standard levels. In this case the <LANG>_STANDARD[_REQUIRED] properties will have no effect. Update the RunCMake.CompileFeatures test to exclude the LinkImplementationFeatureCycle test when there is no standard default. It can never fail because no use of specific features will adjust the CXX_STANDARD level required for any target since the standard levels have no meaning in this case.
Diffstat (limited to 'Help/manual/cmake-developer.7.rst')
-rw-r--r--Help/manual/cmake-developer.7.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/manual/cmake-developer.7.rst b/Help/manual/cmake-developer.7.rst
index 65b3a72..e18250c 100644
--- a/Help/manual/cmake-developer.7.rst
+++ b/Help/manual/cmake-developer.7.rst
@@ -80,7 +80,9 @@ When adding the first supported feature to a particular CompilerId, it is
necessary to list support for all features known to cmake (See
:variable:`CMAKE_C_COMPILE_FEATURES` and
:variable:`CMAKE_CXX_COMPILE_FEATURES` as appropriate), where available for
-the compiler.
+the compiler. Furthermore, set ``CMAKE_<LANG>_STANDARD_DEFAULT`` to the
+default language standard level the compiler uses, or to the empty string
+if the compiler has no notion of standard levels (such as ``MSVC``).
It is sensible to record the features for the most recent version of a
particular CompilerId first, and then work backwards. It is sensible to