mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
Fixed an annoying CMake issue that also broke the macOS build.
This commit is contained in:
parent
b8de48ae98
commit
cc93ca4630
|
@ -14,6 +14,8 @@ include(FindPkgMacros)
|
|||
if(NOT WIN32)
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(PUGIXML REQUIRED pugixml>=1.09)
|
||||
# Set the full path to the library instead of just 'pugixml'.
|
||||
set(PUGIXML_LIBRARIES ${PUGIXML_LINK_LIBRARIES})
|
||||
endif(NOT WIN32)
|
||||
|
||||
if(WIN32)
|
||||
|
@ -39,4 +41,4 @@ endif()
|
|||
# Support the REQUIRED and QUIET arguments, and set PUGIXML_FOUND if found.
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
||||
find_package_handle_standard_args(pugixml DEFAULT_MSG PUGIXML_LIBRARY)
|
||||
find_package_handle_standard_args(Pugixml DEFAULT_MSG PUGIXML_LIBRARY)
|
||||
|
|
|
@ -64,21 +64,12 @@ if(NOT WIN32)
|
|||
find_package(CURL REQUIRED)
|
||||
find_package(FreeImage REQUIRED)
|
||||
find_package(Freetype REQUIRED)
|
||||
find_package(Pugixml REQUIRED)
|
||||
find_package(RapidJSON REQUIRED)
|
||||
find_package(SDL2 REQUIRED)
|
||||
find_package(VLC REQUIRED)
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
# For some strange reason, macOS complains about an uppercase 'P' in Pugixml.
|
||||
# FreeBSD, NetBSD and OpenBSD also complain about this, but applying the same rule to
|
||||
# these OSs lead to linking issues for some reason, so we'll have to live with those
|
||||
# warnings for now.
|
||||
find_package(pugixml REQUIRED)
|
||||
elseif(UNIX)
|
||||
find_package(Pugixml REQUIRED)
|
||||
endif()
|
||||
|
||||
# Add libCEC support.
|
||||
if(CEC)
|
||||
find_package(libCEC REQUIRED)
|
||||
|
|
Loading…
Reference in a new issue