13 lines
554 B
Text
13 lines
554 B
Text
--- src/CMakeLists.txt.orig 2022-10-22 11:51:16 UTC
|
|
+++ src/CMakeLists.txt
|
|
@@ -77,7 +77,9 @@ else()
|
|
# If pkg-config is ever needed to find other libraries, move the include outside the if() block
|
|
include(FindPkgConfig)
|
|
if(PKG_CONFIG_FOUND)
|
|
- pkg_check_modules(MINIZIP minizip)
|
|
+ pkg_check_modules(PC_MINIZIP minizip)
|
|
+ find_path(MINIZIP_INCLUDE_DIRS NAMES mztools.h PATH_SUFFIXES minizip HINTS ${PC_MINIZIP_INCLUDE_DIRS})
|
|
+ find_library(MINIZIP_STATIC_LIBRARIES NAMES minizip HINTS ${PC_MINIZIP_LIBRARY_DIRS})
|
|
endif()
|
|
endif()
|
|
|