Browse Source

Merge topic 'doc-CMP0097-FetchContent' into release-3.24

1796ffbde9 Help: CMP0097 applies to FetchContent as well

Acked-by: Kitware Robot <[email protected]>
Merge-request: !7504
Craig Scott 3 years ago
parent
commit
e305fec8ad
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Help/policy/CMP0097.rst

+ 4 - 2
Help/policy/CMP0097.rst

@@ -4,9 +4,11 @@ CMP0097
 .. versionadded:: 3.16
 .. versionadded:: 3.16
 
 
 :command:`ExternalProject_Add` with ``GIT_SUBMODULES ""`` initializes no
 :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
 to initialize and update. Starting with CMake 3.16, explicitly setting
 ``GIT_SUBMODULES`` to an empty string means no submodules will be initialized
 ``GIT_SUBMODULES`` to an empty string means no submodules will be initialized
 or updated.
 or updated.