summaryrefslogtreecommitdiff
path: root/Help/prop_tgt/C_STANDARD.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-26 16:42:36 -0500
committerBrad King <brad.king@kitware.com>2015-01-29 15:01:40 -0500
commit3228fc5049e72e6d7584a6f3cec6055b8a726817 (patch)
tree5525012740e92d95e5721c6b549ef80c091dd6bb /Help/prop_tgt/C_STANDARD.rst
parentea7ca139ea4c3c88e432e722c9cfe1dd86a4359f (diff)
downloadcmake-3228fc5049e72e6d7584a6f3cec6055b8a726817.tar.gz
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/prop_tgt/C_STANDARD.rst')
-rw-r--r--Help/prop_tgt/C_STANDARD.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Help/prop_tgt/C_STANDARD.rst b/Help/prop_tgt/C_STANDARD.rst
index 88ca9264db..3aa74af49a 100644
--- a/Help/prop_tgt/C_STANDARD.rst
+++ b/Help/prop_tgt/C_STANDARD.rst
@@ -5,7 +5,8 @@ The C standard whose features are requested to build this target.
This property specifies the C standard whose features are requested
to build this target. For some compilers, this results in adding a
-flag such as ``-std=gnu11`` to the compile line.
+flag such as ``-std=gnu11`` to the compile line. For compilers that
+have no notion of a standard level, such as MSVC, this has no effect.
Supported values are ``90``, ``99`` and ``11``.