aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/vtk/FindLZMA.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/vtk/FindLZMA.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/vtk/FindLZMA.patch')
-rw-r--r--vcpkg/ports/vtk/FindLZMA.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/vcpkg/ports/vtk/FindLZMA.patch b/vcpkg/ports/vtk/FindLZMA.patch
new file mode 100644
index 0000000..990f2b2
--- /dev/null
+++ b/vcpkg/ports/vtk/FindLZMA.patch
@@ -0,0 +1,16 @@
+diff --git a/CMake/FindLZMA.cmake b/CMake/FindLZMA.cmake
+index 0c8c794..796558c 100644
+--- a/CMake/FindLZMA.cmake
++++ b/CMake/FindLZMA.cmake
+@@ -1,3 +1,11 @@
++find_package(LibLZMA)
++set(LZMA_INCLUDE_DIR "${LIBLZMA_INCLUDE_DIR}" CACHE INTERNAL "")
++set(LZMA_LIBRARY "${LIBLZMA_LIBRARIES}" CACHE INTERNAL "")
++if(NOT TARGET LZMA::LZMA)
++ add_library(LZMA::LZMA INTERFACE IMPORTED)
++ target_link_libraries(LZMA::LZMA INTERFACE LibLZMA::LibLZMA)
++endif()
++
+ find_path(LZMA_INCLUDE_DIR
+ NAMES lzma.h
+ DOC "lzma include directory")