Browse Source

Merge topic 'doc-CMP0128' into release-3.22

8371056fbb Help: Correct inaccuracies in wording for CMP0128

Acked-by: Kitware Robot <[email protected]>
Reviewed-by: Raul Tambre <[email protected]>
Merge-request: !6711
Craig Scott 4 years ago
parent
commit
0b8d692697
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Help/policy/CMP0128.rst

+ 3 - 1
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``.