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,3 +1,4 @@
if(NOT TARGET pugixml)
include(FetchContent)
FetchContent_Declare(
@ -9,3 +10,4 @@ FetchContent_Declare(
FetchContent_MakeAvailable(
ctre
)
endif()

View file

@ -1,3 +1,4 @@
if(NOT TARGET pugixml)
include(FetchContent)
FetchContent_Declare(
@ -9,3 +10,4 @@ FetchContent_Declare(
FetchContent_MakeAvailable(
pugixml
)
endif()