From 1199381803c02cf0cb8e1e068bb0157b8dff50d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20J=C3=BCrgens?= Date: Tue, 26 Jul 2022 16:53:13 +0200 Subject: [PATCH] fix git submodule update command --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bd22173..e854fcd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,11 +28,11 @@ if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git") option(GIT_SUBMODULE "Check submodules during build" ON) if(GIT_SUBMODULE) message(STATUS "Updating submodules") - execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive --remote + execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive --checkout WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} RESULT_VARIABLE GIT_SUBMOD_RESULT) if(NOT GIT_SUBMOD_RESULT EQUAL "0") - message(FATAL_ERROR "`git submodule update --init --recursive --remote` failed with ${GIT_SUBMOD_RESULT}, please provide the submodules manually") + message(FATAL_ERROR "`git submodule update --init --recursive --checkout` failed with ${GIT_SUBMOD_RESULT}, please provide the submodules manually") endif() endif() endif()