Skip to content

Commit

Permalink
cmake: prefer ZLIB_LIBRARIES to ZLIB_LIBRARY (#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 9, 2023
1 parent 1617b2e commit 2d35b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libheif/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

0 comments on commit 2d35b04

Please sign in to comment.