mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
CMake: Use system-wide pugixml if available
Makes it possible to use a system-wide pugixml instead of always using Externals. This is nicer for distro packagers.
This commit is contained in:
@ -533,7 +533,12 @@ endif()
|
||||
add_subdirectory(Externals/Bochs_disasm)
|
||||
add_subdirectory(Externals/cpp-optparse)
|
||||
add_subdirectory(Externals/glslang)
|
||||
add_subdirectory(Externals/pugixml)
|
||||
|
||||
find_package(Pugixml)
|
||||
if(NOT Pugixml_FOUND)
|
||||
message(STATUS "Using static pugixml from Externals")
|
||||
add_subdirectory(Externals/pugixml)
|
||||
endif()
|
||||
|
||||
if(USE_SHARED_ENET)
|
||||
check_lib(ENET libenet enet enet/enet.h QUIET)
|
||||
|
Reference in New Issue
Block a user