Skip to content

Commit 181fd2e

Browse files
committed
Submodules should now pull master
1 parent 62294ea commit 181fd2e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CMakeLists.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git")
1414
execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive
1515
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
1616
RESULT_VARIABLE GIT_SUBMOD_RESULT)
17-
# git submodule update --remote
18-
execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --remote
17+
execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --remote --merge
1918
--merge)
2019
if(NOT GIT_SUBMOD_RESULT EQUAL "0")
2120
message(FATAL_ERROR "git submodule update --init --recursive failed with ${GIT_SUBMOD_RESULT}, please checkout submodules")
@@ -39,7 +38,7 @@ else()
3938
VERBATIM
4039
)
4140
else()
42-
41+
4342
set(CMAKE_EXPORT_COMPILE_COMMANDS ON )
4443
set(CMAKE_BUILD_TYPE "Debug")
4544
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)

0 commit comments

Comments
 (0)