Skip to content

Commit 6c4f5a0

Browse files
committed
#318: Added warning if git is not installed
1 parent 5fd3adb commit 6c4f5a0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/Make.helper.cmake"
9090
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/lib/structure_tree.cpp.cmake"
9191
"${CMAKE_CURRENT_SOURCE_DIR}/lib/structure_tree.cpp" @ONLY)
9292

93+
find_package(Git)
94+
if(GIT_FOUND)
95+
message("git found: ${GIT_EXECUTABLE}")
96+
else()
97+
message(WARNING "git not found. Cloning of submodules will not work.")
98+
endif()
99+
93100
add_subdirectory(external)
94101
add_subdirectory(include)
95102
add_subdirectory(lib)

0 commit comments

Comments
 (0)