summaryrefslogtreecommitdiff
path: root/Help/prop_tgt/CXX_STANDARD_REQUIRED.rst
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-30 18:07:38 +0200
committerStephen Kelly <steveire@gmail.com>2014-05-07 12:17:49 +0200
commit205215fb8a8aa950026d914377a54ae358a1c02a (patch)
tree2e847006ba3a5e19448058ff09ad6b496fe4b39b /Help/prop_tgt/CXX_STANDARD_REQUIRED.rst
parent1df2116bfaa4c575404ae1eef225aed1530d668a (diff)
downloadcmake-205215fb8a8aa950026d914377a54ae358a1c02a.tar.gz
cmTarget: Add CXX_STANDARD_REQUIRED to control decay.
Diffstat (limited to 'Help/prop_tgt/CXX_STANDARD_REQUIRED.rst')
-rw-r--r--Help/prop_tgt/CXX_STANDARD_REQUIRED.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Help/prop_tgt/CXX_STANDARD_REQUIRED.rst b/Help/prop_tgt/CXX_STANDARD_REQUIRED.rst
new file mode 100644
index 0000000000..f0828051fd
--- /dev/null
+++ b/Help/prop_tgt/CXX_STANDARD_REQUIRED.rst
@@ -0,0 +1,14 @@
+CXX_STANDARD_REQUIRED
+---------------------
+
+Boolean describing whether the value of :prop_tgt:`CXX_STANDARD` is a requirement.
+
+If this property is set to ``ON``, then the value of the
+:prop_tgt:`CXX_STANDARD` target property is treated as a requirement. If this
+property is ``OFF`` or unset, the :prop_tgt:`CXX_STANDARD` target property is
+treated as optional and may "decay" to a previous standard if the requested is
+not available.
+
+This property is initialized by the value of
+the :variable:`CMAKE_CXX_STANDARD_REQUIRED` variable if it is set when a
+target is created.