Skip to content

Commit

Permalink
cmake: ignore missing git executable (#3016)
Browse files Browse the repository at this point in the history
  • Loading branch information
DSpeichert authored May 4, 2020
1 parent 1e96813 commit 223671c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/git_watcher.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ CHECK_OPTIONAL_VARIABLE(GIT_WORKING_DIR "${CMAKE_SOURCE_DIR}")
# Check the optional git variable.
# If it's not set, we'll try to find it using the CMake packaging system.
if(NOT DEFINED GIT_EXECUTABLE)
find_package(Git QUIET REQUIRED)
find_package(Git QUIET)
if (NOT Git_FOUND)
return()
endif()
endif()
CHECK_REQUIRED_VARIABLE(GIT_EXECUTABLE)

Expand Down

0 comments on commit 223671c

Please sign in to comment.