summaryrefslogtreecommitdiffstats
path: root/Help/policy/CMP0097.rst
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2019-07-26 16:02:15 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-07-26 16:02:34 (GMT)
commit8fd481a899b651150d317cdfe448cbf628933e4d (patch)
treedd3e1dc17d36815724a2e325ad9bfeaadb58af8b /Help/policy/CMP0097.rst
parent618bd463ad853da9cd4594bc1ff08fb272a7450d (diff)
parentd6be117ca06154bdf9f0b72c6159a496da1646f7 (diff)
downloadCMake-8fd481a899b651150d317cdfe448cbf628933e4d.zip
CMake-8fd481a899b651150d317cdfe448cbf628933e4d.tar.gz
CMake-8fd481a899b651150d317cdfe448cbf628933e4d.tar.bz2
Merge topic 'ep_support_no_submodule_init'
d6be117ca0 ExternalProject: Support not initializing any submodules Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3579
Diffstat (limited to 'Help/policy/CMP0097.rst')
-rw-r--r--Help/policy/CMP0097.rst23
1 files changed, 23 insertions, 0 deletions
diff --git a/Help/policy/CMP0097.rst b/Help/policy/CMP0097.rst
new file mode 100644
index 0000000..8a5ff88
--- /dev/null
+++ b/Help/policy/CMP0097.rst
@@ -0,0 +1,23 @@
+CMP0097
+-------
+
+:command:`ExternalProject_Add` with ``GIT_SUBMODULES ""`` initializes no
+submodules.
+
+The module provides a ``GIT_SUBMODULES`` option which controls what submodules
+to initialize and update. Starting with CMake 3.16, explicitly setting
+``GIT_SUBMODULES`` to an empty string means no submodules will be initialized
+or updated.
+
+This policy provides compatibility for projects that have not been updated
+to expect the new behavior.
+
+The ``OLD`` behavior for this policy is for ``GIT_SUBMODULES`` when set to
+an empty string to initialize and update all git submodules.
+The ``New`` behavior for this policy is for ``GIT_SUBMODULES`` when set to
+an empty string to initialize and update no git submodules.
+
+This policy was introduced in CMake version 3.16. Use the
+:command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
+Unlike most policies, CMake version |release| does *not* warn
+when this policy is not set and simply uses ``OLD`` behavior.