From fe0d03b044c8517d8b7a7457255fc835d4a5c503 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 20 Nov 2023 08:51:46 -0500 Subject: Help: Document that CMP0149 should be set before project() Issue: #25413 --- Help/policy/CMP0149.rst | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- cgit v0.12