]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
build: make sure submodules are checked out
authortobtoht <tob@featherwallet.org>
Wed, 31 May 2023 21:31:03 +0000 (23:31 +0200)
committertobtoht <tob@featherwallet.org>
Wed, 31 May 2023 21:31:03 +0000 (23:31 +0200)
CMakeLists.txt
contrib/guix/guix-build

index 87e6c66f03baf68c77bdcd84bf7d560f92f3913e..641244c8ae30818578b0b61128fac560fc1ff1c8 100644 (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)
index b7707bc9cc8bc1179c1e8fb0dec722bf7a8c86b0..d9ab5cf4d4d7a06e1a901b265ce56e0bc97541f0 100755 (executable)
@@ -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
 ################