CMP0097.rst 1003 B

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