summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/pugixml/files/pugixml-1.11.1-cmake-config.patch')
-rw-r--r--dev-libs/pugixml/files/pugixml-1.11.1-cmake-config.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-libs/pugixml/files/pugixml-1.11.1-cmake-config.patch b/dev-libs/pugixml/files/pugixml-1.11.1-cmake-config.patch
new file mode 100644
index 00000000000..2aec70d4f76
--- /dev/null
+++ b/dev-libs/pugixml/files/pugixml-1.11.1-cmake-config.patch
@@ -0,0 +1,23 @@
+https://github.com/zeux/pugixml/pull/389.patch
+From 4feab60bb7ecced7cea18c570ca9a39a08246a57 Mon Sep 17 00:00:00 2001
+From: Ben Boeckel <ben.boeckel@kitware.com>
+Date: Thu, 10 Dec 2020 07:52:35 -0500
+Subject: [PATCH] cmake: avoid ALIAS target
+
+This is not allowed on IMPORTED targets.
+---
+ scripts/pugixml-config.cmake.in | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/scripts/pugixml-config.cmake.in b/scripts/pugixml-config.cmake.in
+index 5af37501..58be6391 100644
+--- a/scripts/pugixml-config.cmake.in
++++ b/scripts/pugixml-config.cmake.in
+@@ -6,5 +6,6 @@ include("${CMAKE_CURRENT_LIST_DIR}/pugixml-targets.cmake")
+ # version or not requesting one at all), provide the old imported target name
+ # for compatibility.
+ if (NOT DEFINED PACKAGE_FIND_VERSION OR PACKAGE_FIND_VERSION VERSION_LESS "1.11")
+- add_library(pugixml ALIAS pugixml::pugixml)
++ add_library(pugixml INTERFACE IMPORTED)
++ target_link_libraries(pugixml INTERFACE pugixml::pugixml)
+ endif ()