Merge pull request #3094

e198752 cmake: support manual submodules (selsta)
This commit is contained in:
luigi1111 2020-09-22 10:32:53 -05:00
commit 076c70906a
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -29,8 +29,9 @@ set(BUILD_GUI_DEPS ON)
set(ARCH "x86-64")
set(BUILD_64 ON)
find_package(Git)
if(GIT_FOUND)
if(NOT MANUAL_SUBMODULES)
find_package(Git)
if(GIT_FOUND)
if(NOT DEV_MODE)
function (check_submodule relative_path)
execute_process(COMMAND git rev-parse "HEAD" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${relative_path} OUTPUT_VARIABLE localHead)
@ -52,6 +53,7 @@ if(GIT_FOUND)
message(FATAL_ERROR "Updating git submodule to master (-DDEV_MODE=ON) failed")
endif()
endif()
endif()
endif()
add_subdirectory(monero)