aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/lerc/create_package.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/lerc/create_package.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/lerc/create_package.patch')
-rw-r--r--vcpkg/ports/lerc/create_package.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/lerc/create_package.patch b/vcpkg/ports/lerc/create_package.patch
new file mode 100644
index 0000000..86e24ec
--- /dev/null
+++ b/vcpkg/ports/lerc/create_package.patch
@@ -0,0 +1,23 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ab733f5..a52dc59 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -38,11 +38,18 @@ endif()
+
+ install(
+ TARGETS Lerc
++ EXPORT LercTargets
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+ )
++target_include_directories(Lerc PUBLIC "$<INSTALL_INTERFACE:include>")
++install(EXPORT LercTargets
++ FILE unofficial-lerc-config.cmake
++ NAMESPACE unofficial::Lerc::
++ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/unofficial-lerc"
++)
+
+ # Handle both absolute paths (e.g. NixOS) and relative for a relocatable package
+ if(IS_ABSOLUTE "${CMAKE_INSTALL_INCLUDEDIR}")