diff options
author | Craig Scott <craig.scott@crascit.com> | 2022-07-24 06:12:40 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2022-07-24 06:23:36 (GMT) |
commit | 1796ffbde916bb960466d60d8d93defb45e877c0 (patch) | |
tree | 39a55cf86f63858814dfc20cd351dba0f1ab4d4a /Help/policy | |
parent | 66077528f944b1753715defd443f77e614874eb6 (diff) | |
download | CMake-1796ffbde916bb960466d60d8d93defb45e877c0.zip CMake-1796ffbde916bb960466d60d8d93defb45e877c0.tar.gz CMake-1796ffbde916bb960466d60d8d93defb45e877c0.tar.bz2 |
Help: CMP0097 applies to FetchContent as well
The omission of FetchContent_Declare() in the original policy docs
was just an oversight.
Diffstat (limited to 'Help/policy')
-rw-r--r-- | Help/policy/CMP0097.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Help/policy/CMP0097.rst b/Help/policy/CMP0097.rst index 2240874..24957d0 100644 --- a/Help/policy/CMP0097.rst +++ b/Help/policy/CMP0097.rst @@ -4,9 +4,11 @@ CMP0097 .. versionadded:: 3.16 :command:`ExternalProject_Add` with ``GIT_SUBMODULES ""`` initializes no -submodules. +submodules. The policy also applies to :command:`FetchContent_Declare`, +which uses the same download and update features as +:command:`ExternalProject_Add`. -The module provides a ``GIT_SUBMODULES`` option which controls what submodules +The commands provide 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. |