diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/matajoh-libnpy/fix-miniz.patch | |
Diffstat (limited to 'vcpkg/ports/matajoh-libnpy/fix-miniz.patch')
| -rw-r--r-- | vcpkg/ports/matajoh-libnpy/fix-miniz.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/matajoh-libnpy/fix-miniz.patch b/vcpkg/ports/matajoh-libnpy/fix-miniz.patch new file mode 100644 index 0000000..7d81ffa --- /dev/null +++ b/vcpkg/ports/matajoh-libnpy/fix-miniz.patch @@ -0,0 +1,25 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 66f8af4..92864c0 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -1,17 +1,18 @@ ++find_package(miniz CONFIG REQUIRED) ++ + set( SOURCES + dtype.cpp + npy.cpp + npz.cpp + tensor.cpp + zip.cpp +- miniz/miniz.cpp + ) +- + add_definitions( -DLIBNPY_VERSION=${LIBNPY_VERSION} ) + + add_library( npy STATIC ${SOURCES} ) + add_library( npy::npy ALIAS npy ) + ++target_link_libraries(npy PRIVATE miniz::miniz) + if (LIBNPY_SANITIZE) + target_compile_options(npy PUBLIC -g -fsanitize=${REGOCPP_SANITIZE} -fno-omit-frame-pointer) + target_link_libraries(npy PUBLIC -fsanitize=${REGOCPP_SANITIZE}) |