Merge pull request #12 from Benitoite/patch-1
CMakeLists.txt: download submodules if needed
This commit is contained in:
commit
1163f11e57
1 changed files with 8 additions and 0 deletions
|
@ -68,6 +68,14 @@ else()
|
|||
set(VERSION_GIT_FULL "${VERSION_GIT}-${VERSION_GIT_IS_DIRTY}")
|
||||
endif()
|
||||
|
||||
# Download submodules if needed
|
||||
|
||||
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(
|
||||
COMMAND git submodule update --init --recursive
|
||||
)
|
||||
endif()
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
# tests
|
||||
|
|
Loading…
Reference in a new issue