From 8d3e9134241c7bd4087b58663a29c201c3fa6466 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Wed, 9 Dec 2015 00:27:55 +0100 Subject: [PATCH] Removed submodule checkout in cmake submodule --- .cmake/Modules/Submodules.cmake | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/.cmake/Modules/Submodules.cmake b/.cmake/Modules/Submodules.cmake index 5183368..3d5db80 100644 --- a/.cmake/Modules/Submodules.cmake +++ b/.cmake/Modules/Submodules.cmake @@ -25,32 +25,3 @@ else() WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} ) endif() - -### Then, checkout each submodule to the specified commit -# Note: Execute separate processes here, to make sure each one is run, -# should one crash (because of branch not existing, this, that ... whatever) -foreach(GIT_SUBMODULE ${GIT_SUBMODULES}) - - if( "${GIT_SUBMODULE_VERSION_${GIT_SUBMODULE}}" STREQUAL "" ) - message(STATUS "no specific version given for submodule ${GIT_SUBMODULE}, checking out master") - set(GIT_SUBMODULE_VERSION_${GIT_SUBMODULE} "master") - endif() - - if(${GIT_SUBMODULES_CHECKOUT_QUIET}) - execute_process( - COMMAND git checkout ${GIT_SUBMODULE_VERSION_${GIT_SUBMODULE}} - WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/${GIT_SUBMODULES_DIRECTORY}/${GIT_SUBMODULE} - OUTPUT_QUIET - ERROR_QUIET - ) - else() - message(STATUS "checking out ${GIT_SUBMODULE}'s commit/tag ${GIT_SUBMODULE_VERSION_${GIT_SUBMODULE}}") - execute_process( - COMMAND git checkout -q ${GIT_SUBMODULE_VERSION_${GIT_SUBMODULE}} - WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/${GIT_SUBMODULES_DIRECTORY}/${GIT_SUBMODULE} - ) - endif() - -endforeach(${GIT_SUBMODULE}) - -endif()