diff options
author | Brad King <brad.king@kitware.com> | 2023-11-20 14:08:26 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-11-20 14:08:38 (GMT) |
commit | c184bd2d4830ec96ad839184738355e759f8e7f0 (patch) | |
tree | 75d9864d097f9bb2123166c604e9b31f12f445b2 /Help/policy | |
parent | ed8df1e8d27e5db2346bd6328ae66ac71eae9de2 (diff) | |
parent | fe0d03b044c8517d8b7a7457255fc835d4a5c503 (diff) | |
download | CMake-c184bd2d4830ec96ad839184738355e759f8e7f0.zip CMake-c184bd2d4830ec96ad839184738355e759f8e7f0.tar.gz CMake-c184bd2d4830ec96ad839184738355e759f8e7f0.tar.bz2 |
Merge topic 'doc-CMP0149'
fe0d03b044 Help: Document that CMP0149 should be set before project()
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8990
Diffstat (limited to 'Help/policy')
-rw-r--r-- | Help/policy/CMP0149.rst | 7 |
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. |