Skip to content

Commit

Permalink
cmake: silence repeated git searches too
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed May 22, 2021
1 parent f9f8cae commit 9d0fde3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cmake/FindGit.cmake
Original file line number Diff line number Diff line change
@@ -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})

0 comments on commit 9d0fde3

Please sign in to comment.