mirror of
https://github.com/qpdf/qpdf.git
synced 2025-02-12 08:38:26 +00:00
Use NAMES keyword in find_library call
This commit is contained in:
parent
bcf56e5333
commit
0b4610ed8c
@ -158,7 +158,7 @@ if(NOT EXTERNAL_LIBS)
|
||||
list(APPEND dep_link_libraries ${pc_zlib_LIBRARIES})
|
||||
else()
|
||||
find_path(ZLIB_H_PATH zlib.h)
|
||||
find_library(ZLIB_LIB_PATH z zlib)
|
||||
find_library(ZLIB_LIB_PATH NAMES z zlib)
|
||||
if(ZLIB_H_PATH AND ZLIB_LIB_PATH)
|
||||
list(APPEND dep_include_directories ${ZLIB_H_PATH})
|
||||
list(APPEND dep_link_libraries ${ZLIB_LIB_PATH})
|
||||
|
Loading…
x
Reference in New Issue
Block a user