Skip to content

Commit

Permalink
use GIT_EXECUTABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
x37v authored and jcelerier committed Nov 17, 2023
1 parent eaae533 commit 9c6b324
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake/OssiaDeps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@ if(Git_FOUND AND OSSIA_SUBMODULE_AUTOUPDATE)
set(OSSIA_SUBMODULES ${OSSIA_SUBMODULES} Catch2)
endif()

execute_process(COMMAND Git::Git submodule sync --recursive
find_package(Git REQUIRED)
execute_process(COMMAND ${GIT_EXECUTABLE} submodule sync --recursive
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
COMMAND_ERROR_IS_FATAL ANY)

foreach(submodule ${OSSIA_SUBMODULES})
message(" -> ${OSSIA_3RDPARTY_FOLDER}/${submodule}")
execute_process(COMMAND git submodule update --init --recursive -- ${OSSIA_3RDPARTY_FOLDER}/${submodule}
execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive -- ${OSSIA_3RDPARTY_FOLDER}/${submodule}
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
COMMAND_ERROR_IS_FATAL ANY)
endforeach()
Expand Down

0 comments on commit 9c6b324

Please sign in to comment.