mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 11:35:38 -04:00
[cmake] CheckPugiXML.cmake: PugiXML 1.10 doesn't define the alias target "pugixml::pugixml".
From Ubuntu Launchpad: CMake Error at src/libromdata/CMakeLists.txt:488 (ADD_LIBRARY): Target "romdata" links to target "pugixml::pugixml" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
This commit is contained in:
parent
075ae289bb
commit
5481b385f5
@ -17,7 +17,13 @@ IF(NOT USE_INTERNAL_XML)
|
||||
# Found system PugiXML.
|
||||
SET(HAVE_XML 1)
|
||||
# NOTE: PugiXML's CMake configuration files don't set pugixml_LIBRARY.
|
||||
SET(pugixml_LIBRARY pugixml::pugixml CACHE INTERNAL "PugiXML library" FORCE)
|
||||
IF(TARGET pugixml::pugixml)
|
||||
SET(pugixml_LIBRARY pugixml::pugixml CACHE INTERNAL "PugiXML library" FORCE)
|
||||
ELSEIF(TARGET pugixml)
|
||||
SET(pugixml_LIBRARY pugixml CACHE INTERNAL "PugiXML library" FORCE)
|
||||
ELSE()
|
||||
MESSAGE(FATAL_ERROR "Unable to find the correct PugiXML target.")
|
||||
ENDIF()
|
||||
ELSE()
|
||||
# System PugiXML was not found.
|
||||
# NOTE: Some older versions, e.g. 1.7-2 (Ubuntu 16.04), lack both
|
||||
|
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,4 +1,4 @@
|
||||
rom-properties (2.5-1ppa6~focal1) focal; urgency=medium
|
||||
rom-properties (2.5-1ppa6~focal2) focal; urgency=medium
|
||||
|
||||
* Build for Ubuntu 20.04 "Focal" Fossa.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user