Skip to content

Commit

Permalink
Merge pull request #1828 from bilke/submodule-sync
Browse files Browse the repository at this point in the history
[CMake] Run git submodule sync in CMake
  • Loading branch information
bilke committed Jun 7, 2017
2 parents 52ad32d + 0dbfb86 commit 3b6ed38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ThirdParty/cmake-modules
Submodule cmake-modules updated 1 files
+4 −3 FindCVODE.cmake
7 changes: 7 additions & 0 deletions scripts/cmake/SubmoduleSetup.cmake
Expand Up @@ -25,6 +25,13 @@ if(OGS_BUILD_SWMM)
list(APPEND REQUIRED_SUBMODULES ThirdParty/SwmmInterface)
endif()

# Sync submodules, which is required when a submodule changed its URL
execute_process(
COMMAND ${GIT_TOOL_PATH} submodule sync
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_QUIET
)

foreach(SUBMODULE ${REQUIRED_SUBMODULES})
execute_process(
COMMAND ${GIT_TOOL_PATH} submodule status ${SUBMODULE}
Expand Down

0 comments on commit 3b6ed38

Please sign in to comment.