aboutsummaryrefslogtreecommitdiff
path: root/ports/libsquish/export-target.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ports/libsquish/export-target.patch')
-rw-r--r--ports/libsquish/export-target.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/ports/libsquish/export-target.patch b/ports/libsquish/export-target.patch
new file mode 100644
index 000000000..78f5f30f5
--- /dev/null
+++ b/ports/libsquish/export-target.patch
@@ -0,0 +1,19 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a3ecdde..94c7b3d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -120,8 +120,14 @@ INCLUDE(GNUInstallDirs)
+
+ INSTALL(
+ TARGETS squish
++ EXPORT unofficial-libsquishConfig
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+ )
++
++INSTALL(EXPORT unofficial-libsquishConfig
++ NAMESPACE unofficial::libsquish::
++ DESTINATION share/unofficial-libsquish
++)