Skip to content

Commit

Permalink
Execute command in a new bash process.
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Mar 25, 2021
1 parent 28588a4 commit f3b7746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if(GIT_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
option(GIT_SUBMODULE "Check submodules during build" ON)
if(GIT_SUBMODULE)
message(STATUS "Submodule update")
execute_process(COMMAND ${GIT_EXECUTABLE} "submodule" "update" "--init" "--recursive"
execute_process(COMMAND bash "-c" "${GIT_EXECUTABLE} submodule update --init --recursive"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
RESULT_VARIABLE GIT_SUBMOD_RESULT)
if(NOT GIT_SUBMOD_RESULT EQUAL 0)
Expand Down

0 comments on commit f3b7746

Please sign in to comment.