summaryrefslogtreecommitdiffstats
path: root/Help/policy
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2024-06-07 07:51:38 (GMT)
committerCraig Scott <craig.scott@crascit.com>2024-06-07 08:12:12 (GMT)
commit9299cbbdb496a265931ef291bd028001df166489 (patch)
treebf67eed9ce1e29a331404c851bc47715048555ac /Help/policy
parente82e2c38c1ce4fef2962c6b5ee1de0ca90f3aa60 (diff)
downloadCMake-9299cbbdb496a265931ef291bd028001df166489.zip
CMake-9299cbbdb496a265931ef291bd028001df166489.tar.gz
CMake-9299cbbdb496a265931ef291bd028001df166489.tar.bz2
FetchContent: Force cmake --fresh to re-execute direct population steps
Issue: #25468
Diffstat (limited to 'Help/policy')
-rw-r--r--Help/policy/CMP0168.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Help/policy/CMP0168.rst b/Help/policy/CMP0168.rst
index 8317351..cab40b9 100644
--- a/Help/policy/CMP0168.rst
+++ b/Help/policy/CMP0168.rst
@@ -31,6 +31,11 @@ The ``NEW`` behavior has the following characteristics:
* The ``PREFIX``, ``TMP_DIR``, ``STAMP_DIR``, ``LOG_DIR``, and ``DOWNLOAD_DIR``
options and their associated directory properties are ignored. The
:module:`FetchContent` module controls those locations internally.
+* :option:`cmake --fresh` will remove the stamp and script files used for
+ tracking and populating the dependency. This will force the dependency's
+ download, update, and patch steps to be re-executed. The directory used for
+ downloads is not affected by :option:`cmake --fresh`, so any previously
+ downloaded files for the ``URL`` download method can still be re-used.
The ``OLD`` behavior has the following characteristics:
@@ -44,6 +49,9 @@ The ``OLD`` behavior has the following characteristics:
update, or patch steps are supported.
* If the ``QUIET`` option is used, or the :variable:`FETCHCONTENT_QUIET`
variable is set to true, warnings will not be shown in the output.
+* :option:`cmake --fresh` has no effect on the dependency's stamp or script
+ files. Previously executed steps will only re-run if details about the
+ dependency have changed.
There's a reasonably good chance that users can set the
:variable:`CMAKE_POLICY_DEFAULT_CMP0168 <CMAKE_POLICY_DEFAULT_CMP<NNNN>>`