Commit 0b4610ed8c1093bddef7d53fcdc4b00d2b8166ab

Authored by Christopher Woyak
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,7 +158,7 @@ if(NOT EXTERNAL_LIBS)
158 list(APPEND dep_link_libraries ${pc_zlib_LIBRARIES}) 158 list(APPEND dep_link_libraries ${pc_zlib_LIBRARIES})
159 else() 159 else()
160 find_path(ZLIB_H_PATH zlib.h) 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 if(ZLIB_H_PATH AND ZLIB_LIB_PATH) 162 if(ZLIB_H_PATH AND ZLIB_LIB_PATH)
163 list(APPEND dep_include_directories ${ZLIB_H_PATH}) 163 list(APPEND dep_include_directories ${ZLIB_H_PATH})
164 list(APPEND dep_link_libraries ${ZLIB_LIB_PATH}) 164 list(APPEND dep_link_libraries ${ZLIB_LIB_PATH})