From 2d35b040aecebdc727dd0b049f6ced08e369ac59 Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Mon, 9 Oct 2023 10:43:32 +0200 Subject: [PATCH] cmake: prefer ZLIB_LIBRARIES to ZLIB_LIBRARY (#973) --- libheif/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libheif/CMakeLists.txt b/libheif/CMakeLists.txt index 3b8c2fc7d5..8a3796251e 100644 --- a/libheif/CMakeLists.txt +++ b/libheif/CMakeLists.txt @@ -114,7 +114,7 @@ endif () if (WITH_DEFLATE_HEADER_COMPRESSION) find_package(ZLIB REQUIRED) if (ZLIB_FOUND) - target_link_libraries(heif PRIVATE ${ZLIB_LIBRARY}) + target_link_libraries(heif PRIVATE ${ZLIB_LIBRARIES}) target_include_directories(heif PRIVATE ${ZLIB_INCLUDE_DIRS}) target_compile_definitions(heif PRIVATE WITH_DEFLATE_HEADER_COMPRESSION=1) endif ()