aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libsquish/export-target.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libsquish/export-target.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libsquish/export-target.patch')
-rw-r--r--vcpkg/ports/libsquish/export-target.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/vcpkg/ports/libsquish/export-target.patch b/vcpkg/ports/libsquish/export-target.patch
new file mode 100644
index 0000000..92df9e6
--- /dev/null
+++ b/vcpkg/ports/libsquish/export-target.patch
@@ -0,0 +1,28 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a3ecdde..6aa9e64 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -75,6 +75,8 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
+
+ ADD_LIBRARY(squish ${SQUISH_SRCS} ${SQUISH_HDRS})
+
++TARGET_INCLUDE_DIRECTORIES(squish PUBLIC $<INSTALL_INTERFACE:include>)
++
+ INCLUDE(GenerateExportHeader)
+ GENERATE_EXPORT_HEADER(squish
+ EXPORT_FILE_NAME ${CMAKE_CURRENT_SOURCE_DIR}/squish_export.h
+@@ -120,8 +122,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
++)