diff options
author | Brad King <brad.king@kitware.com> | 2023-02-28 13:07:41 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-02-28 13:07:59 (GMT) |
commit | 4902970328c9262ea649fa34663b684679d3ab97 (patch) | |
tree | 1fa2318424e2330e07063b06be7d7aafb68f272f /Help/policy | |
parent | e4b56c8224a95004dc53cbbec5fa7fa13590a329 (diff) | |
parent | b39b3e3bdbcb363695d07a9bbd9e55182ed25318 (diff) | |
download | CMake-4902970328c9262ea649fa34663b684679d3ab97.zip CMake-4902970328c9262ea649fa34663b684679d3ab97.tar.gz CMake-4902970328c9262ea649fa34663b684679d3ab97.tar.bz2 |
Merge topic 'doc-cleanup-3.26-rc4'
b39b3e3bdb Help: Fix typos and grammar in 3.26 release notes
9f1360ae19 Help: Improve wording of FOLDER-related properties and policies
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8264
Diffstat (limited to 'Help/policy')
-rw-r--r-- | Help/policy/CMP0143.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Help/policy/CMP0143.rst b/Help/policy/CMP0143.rst index 7a7aee7..24fdc27 100644 --- a/Help/policy/CMP0143.rst +++ b/Help/policy/CMP0143.rst @@ -5,7 +5,7 @@ CMP0143 :prop_gbl:`USE_FOLDERS` global property is treated as ``ON`` by default. -When using CMake 3.25 and below, :prop_gbl:`USE_FOLDERS` is treated +When using CMake 3.25 or earlier, :prop_gbl:`USE_FOLDERS` is treated as ``OFF`` by default unless projects enable the feature. For example: .. code-block:: cmake @@ -16,15 +16,15 @@ as ``OFF`` by default unless projects enable the feature. For example: CMake 3.26 and later prefer to enable the feature by default. +Note that it is the policy setting at the `end` of the top level +``CMakeLists.txt`` file that matters. The policy setting applies globally +to the whole project. + This policy provides compatibility with projects that have not been updated to expect enabling of folders. Enabling folders causes projects to appear -differently in IDEs. - -This policy was introduced in CMake version 3.26. Use the +differently in IDEs. The policy was introduced in CMake version 3.26. Use the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly. Unlike many policies, CMake version |release| does *not* warn when this policy is not set and simply uses ``OLD`` behavior. -The policy setting must be in scope at the end of the top-level -``CMakeLists.txt`` file of the project and has global effect. .. include:: DEPRECATED.txt |