summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-11-20 14:04:04 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-20 14:04:04 (GMT)
commit13874b2631d9b5b2d7a10ac85d0c77802c10cad2 (patch)
treeac439f921179d82c22a6fe65ce044729a015726a
parent8b5bac208aad96c911c2d0606a7847128e717f4b (diff)
parentfe0d03b044c8517d8b7a7457255fc835d4a5c503 (diff)
downloadCMake-13874b2631d9b5b2d7a10ac85d0c77802c10cad2.zip
CMake-13874b2631d9b5b2d7a10ac85d0c77802c10cad2.tar.gz
CMake-13874b2631d9b5b2d7a10ac85d0c77802c10cad2.tar.bz2
Merge branch 'doc-CMP0149' into release-3.27
Merge-request: !8990
-rw-r--r--Help/policy/CMP0149.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Help/policy/CMP0149.rst b/Help/policy/CMP0149.rst
index 714eeaf..a84149f 100644
--- a/Help/policy/CMP0149.rst
+++ b/Help/policy/CMP0149.rst
@@ -35,6 +35,13 @@ This policy provides compatibility for projects, toolchain files, and
build scripts that have not been ported away from using
:variable:`CMAKE_SYSTEM_VERSION` to specify an exact SDK version.
+.. note::
+
+ This policy must be set before the first :command:`project` or
+ :command:`enable_language` command invocation at the top of the
+ project. That is when :ref:`Visual Studio Generators` select a
+ Windows SDK.
+
The ``OLD`` behavior for this policy is to use the exact value of
:variable:`CMAKE_SYSTEM_VERSION` if possible. The ``NEW`` behavior
for this policy is to ignore it.