aboutsummaryrefslogtreecommitdiff
path: root/ports/libsquish/export-target.patch
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2021-10-12 01:22:36 +0800
committerGitHub <noreply@github.com>2021-10-11 10:22:36 -0700
commita6768f64260f0380e7daca3d2a5519bbd496e13b (patch)
tree18f71a38557412b5ff5f4d1725cd048c508e93df /ports/libsquish/export-target.patch
parent822eb4b4ce82d76fa5bcfa8f5774f47db4e01e8b (diff)
downloadvcpkg-a6768f64260f0380e7daca3d2a5519bbd496e13b.tar.gz
vcpkg-a6768f64260f0380e7daca3d2a5519bbd496e13b.zip
[openimageio/libsquish] Export libsquish cmake target and fix find dependency libsquish (#20240)
* [libsquish] Export cmake target * [openimageio] Fix find dependency libsquish * version * Rename the target * Re-fix dependency libsquish, apply official changes * version stuff * more version * Change namespace * Update patch * version * Remove unused patch * version Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
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
++)