summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2021-11-10 10:47:18 +0000
committerKitware Robot <kwrobot@kitware.com>2021-11-10 05:47:33 -0500
commit0b8d69269717a225594d2e0d2bfbd61dbbf04fc9 (patch)
treeaaf27665ea18b7b236781e86757e0382f817699a
parent95ea17dfd313413301e86765ddf1c0cd817fde9a (diff)
parent8371056fbb9b24f4967bbdfd95a64e8fcd44ea0c (diff)
downloadcmake-0b8d69269717a225594d2e0d2bfbd61dbbf04fc9.tar.gz
Merge topic 'doc-CMP0128' into release-3.22
8371056fbb Help: Correct inaccuracies in wording for CMP0128 Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !6711
-rw-r--r--Help/policy/CMP0128.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/policy/CMP0128.rst b/Help/policy/CMP0128.rst
index f341f24abf..b894ce1fd7 100644
--- a/Help/policy/CMP0128.rst
+++ b/Help/policy/CMP0128.rst
@@ -6,6 +6,7 @@ CMP0128
When this policy is set to ``NEW``:
* :prop_tgt:`<LANG>_EXTENSIONS` is initialized to
+ :variable:`CMAKE_<LANG>_EXTENSIONS` if set, otherwise falling back to
:variable:`CMAKE_<LANG>_EXTENSIONS_DEFAULT`.
* Extensions are correctly disabled/enabled if :prop_tgt:`<LANG>_STANDARD` is
@@ -16,7 +17,8 @@ When this policy is set to ``NEW``:
The ``OLD`` behavior:
-* Initializes :prop_tgt:`<LANG>_EXTENSIONS` to ``ON``.
+* Initializes :prop_tgt:`<LANG>_EXTENSIONS` to
+ :variable:`CMAKE_<LANG>_EXTENSIONS` if set, otherwise falling back to ``ON``.
* Always adds a flag if :prop_tgt:`<LANG>_STANDARD` is set and
:prop_tgt:`<LANG>_STANDARD_REQUIRED` is ``OFF``.