mirror of
https://github.com/sal063/AC6_recomp
synced 2026-05-23 06:54:32 -04:00
fix: allow vendored rexglue thirdparty deps without submodules
Stop requiring a .git folder for vendored dependencies so source-only clones and monorepo mirrors can configure on Linux/CI. Made-with: Cursor
This commit is contained in:
+10
-5
@@ -17,7 +17,7 @@ else()
|
||||
endif()
|
||||
|
||||
#=============================================================================
|
||||
# Verify git submodules are initialized (only vendored ones)
|
||||
# Verify vendored dependencies are present
|
||||
#=============================================================================
|
||||
set(REQUIRED_SUBMODULES
|
||||
cli11
|
||||
@@ -47,11 +47,16 @@ if(REXGLUE_BUILD_TESTS)
|
||||
endif()
|
||||
|
||||
foreach(submodule ${REQUIRED_SUBMODULES})
|
||||
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${submodule}/.git")
|
||||
# This repo vendors third-party sources directly. Some upstream layouts use
|
||||
# git submodules, but requiring a `${submodule}/.git` checkout breaks when
|
||||
# dependencies are vendored as plain directories (for example, in source
|
||||
# tarballs or monorepo mirrors).
|
||||
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${submodule}")
|
||||
message(FATAL_ERROR
|
||||
"Git submodule '${submodule}' is not initialized.\n"
|
||||
"Please run: git submodule update --init --recursive\n"
|
||||
"from the repository root directory."
|
||||
"Required third-party dependency '${submodule}' is missing.\n"
|
||||
"Expected directory: ${CMAKE_CURRENT_SOURCE_DIR}/${submodule}\n"
|
||||
"If you cloned from git and this repo uses submodules in your fork,\n"
|
||||
"run: git submodule update --init --recursive\n"
|
||||
)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
Reference in New Issue
Block a user