Detect .git instead of CMakeLists.txt in submods
This commit is contained in:
parent
6d2671900b
commit
3eb5c881fe
1 changed files with 4 additions and 4 deletions
|
@ -70,10 +70,10 @@ endif()
|
||||||
|
|
||||||
# Download submodules if needed
|
# Download submodules if needed
|
||||||
|
|
||||||
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/src/configparser/CMakeLists.txt OR NOT EXISTS ${CMAKE_SOURCE_DIR}/src/cppgtfs/CMakeLists.txt OR NOT EXISTS ${CMAKE_SOURCE_DIR}/src/xml/pfxml.h)
|
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/src/configparser/.git OR NOT EXISTS ${CMAKE_SOURCE_DIR}/src/cppgtfs/.git OR NOT EXISTS ${CMAKE_SOURCE_DIR}/src/xml/.git)
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND git submodule update --init --recursive
|
COMMAND git submodule update --init --recursive
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
Loading…
Reference in a new issue