mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
cmake: silence repeated git searches too
This commit is contained in:
parent
f9f8cae9fe
commit
9d0fde3ba1
1 changed files with 13 additions and 0 deletions
13
cmake/FindGit.cmake
Normal file
13
cmake/FindGit.cmake
Normal file
|
@ -0,0 +1,13 @@
|
|||
if(GIT_EXECUTABLE)
|
||||
set(GIT_FOUND TRUE)
|
||||
return()
|
||||
endif()
|
||||
if(DEFINED GIT_EXECUTABLE)
|
||||
set(GIT_FOUND FALSE)
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(orig_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
|
||||
unset(CMAKE_MODULE_PATH)
|
||||
include(FindGit)
|
||||
set(CMAKE_MODULE_PATH ${orig_CMAKE_MODULE_PATH})
|
Loading…
Reference in a new issue