build: make sure submodules are checked out

This commit is contained in:
tobtoht 2023-05-31 23:31:03 +02:00
parent 7dca8380b0
commit 3b6a66229f
No known key found for this signature in database
GPG key ID: E45B10DD027D2472
2 changed files with 9 additions and 0 deletions

View file

@ -57,6 +57,9 @@ include(VersionFeather)
#### Dependencies
# Monero
if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/monero/CMakeLists.txt")
message(FATAL_ERROR "'monero/CMakeLists.txt' does not exist, did you forget to:\ngit submodule update --init --recursive")
endif()
add_subdirectory(monero EXCLUDE_FROM_ALL)
set_property(TARGET wallet_merged PROPERTY FOLDER "monero")
get_directory_property(ARCH_WIDTH DIRECTORY "monero" DEFINITION ARCH_WIDTH)

View file

@ -47,6 +47,12 @@ EOF
exit 1
fi
################
# Checkout git submodules if we haven't already
################
git submodule update --init --recursive
################
# The git worktree should not be dirty
################