Make sure FetchContent targets are replaceable
This commit is contained in:
parent
3807e438c5
commit
6c784abd5d
2 changed files with 22 additions and 18 deletions
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue