Skip to content

Commit 242d725

Browse files
committed
allow mods to override asp/arc commits/versions
1 parent 52b3b3a commit 242d725

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

CMakeLists.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,20 @@ CPMAddPackage("gh:geode-sdk/json@3.3.0")
259259
CPMAddPackage("gh:geode-sdk/nontype_functional#6d1d08c")
260260
CPMAddPackage("gh:fmtlib/fmt#12.1.0")
261261

262+
# allow overriding asp / arc versions
263+
if (NOT DEFINED GEODE_ARC_VERSION)
264+
set(GEODE_ARC_VERSION "@1.5.3" CACHE STRING "")
265+
endif()
266+
if (NOT DEFINED GEODE_ASP_VERSION)
267+
set(GEODE_ASP_VERSION "#70fa109" CACHE STRING "")
268+
endif()
269+
270+
CPMAddPackage("gh:dankmeme01/asp2${GEODE_ASP_VERSION}")
262271
# enable all arc features in geode, but let mods do it granularly
263272
if (NOT PROJECT_IS_TOP_LEVEL AND NOT DEFINED ARC_FEATURE_FULL)
264273
set(ARC_FEATURE_FULL OFF CACHE BOOL "" FORCE)
265274
endif()
266-
CPMAddPackage("gh:dankmeme01/asp2#70fa109")
267-
CPMAddPackage("gh:dankmeme01/arc@1.5.3")
275+
CPMAddPackage("gh:dankmeme01/arc${GEODE_ARC_VERSION}")
268276

269277
# use unity for both arc and its dependencies,
270278
# they're fairly small libs so it helps a lot with compile times

0 commit comments

Comments
 (0)