mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
Help: CMP0097 applies to FetchContent as well
The omission of FetchContent_Declare() in the original policy docs was just an oversight.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user