summaryrefslogtreecommitdiffstats
path: root/Help/manual
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2021-11-01 20:03:09 (GMT)
committerRaul Tambre <raul@tambre.ee>2021-11-02 15:58:21 (GMT)
commite9976c882739a0860ae2eae33f318cb0c601c658 (patch)
tree7c2fb39a6770e20414e042712774a8a0becccc51 /Help/manual
parent1cf99f66c79e6806aa6774f24918a2a15c385725 (diff)
downloadCMake-e9976c882739a0860ae2eae33f318cb0c601c658.zip
CMake-e9976c882739a0860ae2eae33f318cb0c601c658.tar.gz
CMake-e9976c882739a0860ae2eae33f318cb0c601c658.tar.bz2
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/manual')
-rw-r--r--Help/manual/cmake-compile-features.7.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Help/manual/cmake-compile-features.7.rst b/Help/manual/cmake-compile-features.7.rst
index a0459fa..67b0f6e 100644
--- a/Help/manual/cmake-compile-features.7.rst
+++ b/Help/manual/cmake-compile-features.7.rst
@@ -119,9 +119,9 @@ Availability of Compiler Extensions
-----------------------------------
The :prop_tgt:`<LANG>_EXTENSIONS` target property defaults to the compiler's
-efault. Note that because most compilers enable extensions by default, this
-may expose cross-platform bugs in user code or in the headers of third-party
-dependencies.
+default (see :variable:`CMAKE_<LANG>_EXTENSIONS_DEFAULT`). Note that because
+most compilers enable extensions by default, this may expose portability bugs
+in user code or in the headers of third-party dependencies.
:prop_tgt:`<LANG>_EXTENSIONS` used to default to ``ON``. See :policy:`CMP0128`.