mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 05:16:58 +00:00
Merge topic 'option-git'
95eef05f28 Add option(CMake_VERSION_NO_GIT) for broken Git or slow filesystem
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12442
This commit is contained in:
commit
3773fb5a46
1 file changed
+4
@@ -442,6 +442,10 @@ if(NOT CMake_TEST_EXTERNAL_CMAKE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/.git")
|
||||
option(CMake_VERSION_NO_GIT "Do not attempt to determine CMake version from Git" OFF)
|
||||
endif()
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# The main section of the CMakeLists file
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user