summaryrefslogtreecommitdiff
path: root/Help/prop_tgt/CXX_EXTENSIONS.rst
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2021-11-01 22:03:09 +0200
committerRaul Tambre <raul@tambre.ee>2021-11-02 17:58:21 +0200
commite9976c882739a0860ae2eae33f318cb0c601c658 (patch)
tree7c2fb39a6770e20414e042712774a8a0becccc51 /Help/prop_tgt/CXX_EXTENSIONS.rst
parent1cf99f66c79e6806aa6774f24918a2a15c385725 (diff)
downloadcmake-e9976c882739a0860ae2eae33f318cb0c601c658.tar.gz
Help: Better explain CMAKE_<LANG>_EXTENSIONS_DEFAULT
Explain that this represents the compiler's default and mustn't be modified by the user. Clarify when it's used as the default. Additionally: * Add a reference to it in cmake-compile-features in text explaining the feature. * Add explanations for the default initialization by `CMAKE_<LANG>_EXTENSIONS_DEFAULT` to all `<LANG>_EXTENSIONS` pages and references to CMP0128. * Slightly reduce the wordiness of the default initialization explanations by removing an unnecessary "it is". Fixes #22828.
Diffstat (limited to 'Help/prop_tgt/CXX_EXTENSIONS.rst')
-rw-r--r--Help/prop_tgt/CXX_EXTENSIONS.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Help/prop_tgt/CXX_EXTENSIONS.rst b/Help/prop_tgt/CXX_EXTENSIONS.rst
index bda531ec01..9b52504efc 100644
--- a/Help/prop_tgt/CXX_EXTENSIONS.rst
+++ b/Help/prop_tgt/CXX_EXTENSIONS.rst
@@ -15,5 +15,7 @@ See the :manual:`cmake-compile-features(7)` manual for information on
compile features and a list of supported compilers.
This property is initialized by the value of
-the :variable:`CMAKE_CXX_EXTENSIONS` variable if it is set when a target
-is created.
+the :variable:`CMAKE_CXX_EXTENSIONS` variable if set when a target is created
+and otherwise by the value of
+:variable:`CMAKE_CXX_EXTENSIONS_DEFAULT <CMAKE_<LANG>_EXTENSIONS_DEFAULT>` (see
+:policy:`CMP0128`).