From 0b4610ed8c1093bddef7d53fcdc4b00d2b8166ab Mon Sep 17 00:00:00 2001 From: Christopher Woyak Date: Tue, 17 Sep 2024 16:49:14 -0500 Subject: [PATCH] Use NAMES keyword in find_library call --- libqpdf/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libqpdf/CMakeLists.txt b/libqpdf/CMakeLists.txt index eb30b62..019df7f 100644 --- a/libqpdf/CMakeLists.txt +++ b/libqpdf/CMakeLists.txt @@ -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}) -- libgit2 0.21.4