mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Add CMake option to allow using system pugixml library
This commit is contained in:
parent
ab5dd39556
commit
564f38396f
@ -18,9 +18,16 @@ message(" - fetch_pugixml")
|
|||||||
|
|
||||||
Include(FetchContent)
|
Include(FetchContent)
|
||||||
|
|
||||||
FetchContent_Declare(
|
option(BUILD_PUGIXML "Build pugixml library, use system one otherwise" YES)
|
||||||
pugixml
|
|
||||||
GIT_REPOSITORY https://github.com/zeux/pugixml.git
|
|
||||||
GIT_TAG v1.11.4)
|
|
||||||
|
|
||||||
FetchContent_MakeAvailable(pugixml)
|
if(BUILD_PUGIXML)
|
||||||
|
|
||||||
|
FetchContent_Declare(
|
||||||
|
pugixml
|
||||||
|
GIT_REPOSITORY https://github.com/zeux/pugixml.git
|
||||||
|
GIT_TAG v1.11.4)
|
||||||
|
|
||||||
|
FetchContent_MakeAvailable(pugixml)
|
||||||
|
else()
|
||||||
|
find_package(pugixml REQUIRED)
|
||||||
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user