Make sure FetchContent targets are replaceable

This commit is contained in:
TennesseeTrash 2025-06-08 18:29:41 +02:00
parent 3807e438c5
commit 6c784abd5d
2 changed files with 22 additions and 18 deletions

View file

@ -1,11 +1,13 @@
include(FetchContent)
if(NOT TARGET pugixml)
include(FetchContent)
FetchContent_Declare(
ctre
GIT_REPOSITORY https://code.3011.io/Mirrors/compile-time-regular-expressions
GIT_TAG v3.10.0
)
FetchContent_Declare(
ctre
GIT_REPOSITORY https://code.3011.io/Mirrors/compile-time-regular-expressions
GIT_TAG v3.10.0
)
FetchContent_MakeAvailable(
ctre
)
FetchContent_MakeAvailable(
ctre
)
endif()

View file

@ -1,11 +1,13 @@
include(FetchContent)
if(NOT TARGET pugixml)
include(FetchContent)
FetchContent_Declare(
pugixml
GIT_REPOSITORY https://code.3011.io/Mirrors/pugixml
GIT_TAG v1.15
)
FetchContent_Declare(
pugixml
GIT_REPOSITORY https://code.3011.io/Mirrors/pugixml
GIT_TAG v1.15
)
FetchContent_MakeAvailable(
pugixml
)
FetchContent_MakeAvailable(
pugixml
)
endif()