Skip to content

Commit

Permalink
Merge pull request #319 from simongog/address318
Browse files Browse the repository at this point in the history
#318: Added warning if git is not installed
  • Loading branch information
simongog committed Mar 25, 2016
2 parents 5fd3adb + 6c4f5a0 commit 52b0945
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/Make.helper.cmake"
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/lib/structure_tree.cpp.cmake"
"${CMAKE_CURRENT_SOURCE_DIR}/lib/structure_tree.cpp" @ONLY)

find_package(Git)
if(GIT_FOUND)
message("git found: ${GIT_EXECUTABLE}")
else()
message(WARNING "git not found. Cloning of submodules will not work.")
endif()

add_subdirectory(external)
add_subdirectory(include)
add_subdirectory(lib)
Expand Down

0 comments on commit 52b0945

Please sign in to comment.