File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11include (FetchContent )
22
3- # ── plugin_arch (local sibling repo) ─────────────────────────────────────────
4- FetchContent_Declare (plugin_arch
5- SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR } /../cpp_plugin_arch
6- )
3+ # ── plugin_arch ──────────────────────────────────────────────────────────────
4+ # Use local sibling repo if available, otherwise fetch from GitHub.
5+ set (_plugin_arch_local "${CMAKE_CURRENT_SOURCE_DIR } /../cpp_plugin_arch" )
6+ if (EXISTS "${_plugin_arch_local} /CMakeLists.txt" )
7+ FetchContent_Declare (plugin_arch
8+ SOURCE_DIR ${_plugin_arch_local}
9+ )
10+ else ()
11+ FetchContent_Declare (plugin_arch
12+ GIT_REPOSITORY https://github.com/bdcbqa314159/cpp_plugin_arch.git
13+ GIT_TAG master
14+ GIT_SHALLOW TRUE
15+ )
16+ endif ()
717FetchContent_MakeAvailable (plugin_arch)
818
919# ── GLFW ─────────────────────────────────────────────────────────────────────
You can’t perform that action at this time.
0 commit comments