CMP0097.rst 979 B

1234567891011121314151617181920212223
  1. CMP0097
  2. -------
  3. :command:`ExternalProject_Add` with ``GIT_SUBMODULES ""`` initializes no
  4. submodules.
  5. The module provides a ``GIT_SUBMODULES`` option which controls what submodules
  6. to initialize and update. Starting with CMake 3.16, explicitly setting
  7. ``GIT_SUBMODULES`` to an empty string means no submodules will be initialized
  8. or updated.
  9. This policy provides compatibility for projects that have not been updated
  10. to expect the new behavior.
  11. The ``OLD`` behavior for this policy is for ``GIT_SUBMODULES`` when set to
  12. an empty string to initialize and update all git submodules.
  13. The ``NEW`` behavior for this policy is for ``GIT_SUBMODULES`` when set to
  14. an empty string to initialize and update no git submodules.
  15. This policy was introduced in CMake version 3.16. Use the
  16. :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
  17. Unlike most policies, CMake version |release| does *not* warn
  18. when this policy is not set and simply uses ``OLD`` behavior.