Commit 018cf0eb54c313d6d60e5bcb04fa8c83146c0bce
Committed by
GitHub
Merge pull request #1284 from cbwoyak/zlib_find_library
Use NAMES keyword in find_library call
Showing
1 changed file
with
1 additions
and
1 deletions
libqpdf/CMakeLists.txt
| ... | ... | @@ -158,7 +158,7 @@ if(NOT EXTERNAL_LIBS) |
| 158 | 158 | list(APPEND dep_link_libraries ${pc_zlib_LIBRARIES}) |
| 159 | 159 | else() |
| 160 | 160 | find_path(ZLIB_H_PATH zlib.h) |
| 161 | - find_library(ZLIB_LIB_PATH z zlib) | |
| 161 | + find_library(ZLIB_LIB_PATH NAMES z zd zlib zlibd) | |
| 162 | 162 | if(ZLIB_H_PATH AND ZLIB_LIB_PATH) |
| 163 | 163 | list(APPEND dep_include_directories ${ZLIB_H_PATH}) |
| 164 | 164 | list(APPEND dep_link_libraries ${ZLIB_LIB_PATH}) | ... | ... |