Commit 0b4610ed8c1093bddef7d53fcdc4b00d2b8166ab
1 parent
bcf56e53
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 zlib) | |
| 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}) | ... | ... |