mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-03 17:39:49 +00:00
build: make sure submodules are checked out
This commit is contained in:
parent
7dca8380b0
commit
3b6a66229f
2 changed files with 9 additions and 0 deletions
|
@ -57,6 +57,9 @@ include(VersionFeather)
|
||||||
|
|
||||||
#### Dependencies
|
#### Dependencies
|
||||||
# Monero
|
# 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)
|
add_subdirectory(monero EXCLUDE_FROM_ALL)
|
||||||
set_property(TARGET wallet_merged PROPERTY FOLDER "monero")
|
set_property(TARGET wallet_merged PROPERTY FOLDER "monero")
|
||||||
get_directory_property(ARCH_WIDTH DIRECTORY "monero" DEFINITION ARCH_WIDTH)
|
get_directory_property(ARCH_WIDTH DIRECTORY "monero" DEFINITION ARCH_WIDTH)
|
||||||
|
|
|
@ -47,6 +47,12 @@ EOF
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
################
|
||||||
|
# Checkout git submodules if we haven't already
|
||||||
|
################
|
||||||
|
|
||||||
|
git submodule update --init --recursive
|
||||||
|
|
||||||
################
|
################
|
||||||
# The git worktree should not be dirty
|
# The git worktree should not be dirty
|
||||||
################
|
################
|
||||||
|
|
Loading…
Reference in a new issue