mirror of
https://git.wownero.com/wownero/wownero.git
synced 2025-01-08 19:38:54 +00:00
Merge pull request #130 from wowario/submodules
Update and init submodules by default
This commit is contained in:
commit
c9bec32aa0
@ -172,6 +172,15 @@ else()
|
|||||||
message(STATUS "Building without build tag")
|
message(STATUS "Building without build tag")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Update and init submodules by default
|
||||||
|
if(NOT MANUAL_SUBMODULES)
|
||||||
|
find_package(Git)
|
||||||
|
if(GIT_FOUND)
|
||||||
|
message(STATUS "Initializing submodules")
|
||||||
|
execute_process(COMMAND git "submodule" "update" "--init" "--recursive" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT MANUAL_SUBMODULES)
|
if(NOT MANUAL_SUBMODULES)
|
||||||
find_package(Git)
|
find_package(Git)
|
||||||
if(GIT_FOUND)
|
if(GIT_FOUND)
|
||||||
@ -239,7 +248,7 @@ endif()
|
|||||||
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
option(BUILD_DOCUMENTATION "Build the Doxygen documentation." ON)
|
option(BUILD_DOCUMENTATION "Build the Doxygen documentation." OFF)
|
||||||
option(BUILD_TESTS "Build tests." OFF)
|
option(BUILD_TESTS "Build tests." OFF)
|
||||||
|
|
||||||
# Check whether we're on a 32-bit or 64-bit system
|
# Check whether we're on a 32-bit or 64-bit system
|
||||||
|
Loading…
Reference in New Issue
Block a user