Commit b3503bf1 authored by louiz’'s avatar louiz’

Also check if the louloulibs/CMakeLists.txt file is missing

Because apparently when cloning a repository with submodules, git creates
empty sub-directories
parent e6569a10
...@@ -63,8 +63,10 @@ if(RONN_EXECUTABLE) ...@@ -63,8 +63,10 @@ if(RONN_EXECUTABLE)
add_custom_target(doc DEPENDS ${MAN_PAGE}) add_custom_target(doc DEPENDS ${MAN_PAGE})
endif() endif()
if(NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/louloulibs") if(NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/louloulibs" OR
message(FATAL_ERROR "louloulibs/ directory not found. Make sure you fetched the submodules with 'git submodule init && git submodule update'") NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/loulou/CMakeLists.txt")
message(FATAL_ERROR "louloulibs/ not found or empty. Make sure you fetched
the submodules with 'git submodule init && git submodule update'")
endif() endif()
add_subdirectory("louloulibs") add_subdirectory("louloulibs")
include_directories("louloulibs") include_directories("louloulibs")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment