diff options
| author | Mystro256 <alexjnewt@hotmail.com> | 2020-03-11 09:57:43 -0400 |
|---|---|---|
| committer | Mystro256 <alexjnewt@hotmail.com> | 2020-03-11 10:55:05 -0400 |
| commit | 9f12e0f5a9b282a92c8ee4e2fc4a94dc7a277bce (patch) | |
| tree | 170a618fab65cfb6425201710237f4be2098fc13 | |
| parent | bb7623e3ba4c5ed1d7089e6c9be388d0f0272c2e (diff) | |
Allow using shared minizip
| -rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 02d6916d86..a46169b43c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -582,8 +582,14 @@ else() add_subdirectory(Externals/zlib) endif() -add_subdirectory(Externals/minizip) -include_directories(External/minizip) +pkg_check_modules(MINIZIP minizip) +if(MINIZIP_FOUND) + message(STATUS "Using shared minizip") +else() + message(STATUS "Shared minizip not found, falling back to the static library") + add_subdirectory(Externals/minizip) + include_directories(External/minizip) +endif() if(NOT APPLE) check_lib(LZO "(no .pc for lzo2)" lzo2 lzo/lzo1x.h QUIET) |
