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( FetchContent_Declare(
ctre ctre
GIT_REPOSITORY https://code.3011.io/Mirrors/compile-time-regular-expressions GIT_REPOSITORY https://code.3011.io/Mirrors/compile-time-regular-expressions
GIT_TAG v3.10.0 GIT_TAG v3.10.0
) )
FetchContent_MakeAvailable( FetchContent_MakeAvailable(
ctre ctre
) )
endif()

View file

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