vcpkg/ports/collada-dom/use-vcpkg-minizip.patch
Kai Pastor 326968a70b
[minizip,xlsxio,fmilib,collada-dom] Minizip fixes, xlsxio update (#30930)
* [minizip] Misc fixes

* [minizip] CMake config is unofficial

* [xlsxio] Update, fixes

* [collada-dom] Fix minizip

* [fmilib] Fix minizip

* [xlsxio] Fix vcpkg quirk
2023-04-25 22:40:19 -07:00

15 lines
395 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f6c2bb6..3351ab0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -222,7 +222,8 @@ else()
endif()
endif()
-pkg_check_modules(minizip minizip)
+find_package(minizip NAMES unofficial-minizip REQUIRED)
+add_library(minizip ALIAS unofficial::minizip::minizip)
if(minizip_FOUND)
set(MINIZIP_INCLUDE_DIR ${minizip_INCLUDE_DIRS})
else()