Skip to content

Commit

Permalink
fix ZLIB library reference
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh committed Oct 8, 2023
1 parent 2110542 commit d0353c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ if (PNG_FOUND AND ZLIB_FOUND)
../libheif/exif.cc
common.cc
common.h)
target_link_libraries(heif-thumbnailer heif ${PNG_LIBRARIES} ${ZLIB_LIBRARY})
target_link_libraries(heif-thumbnailer heif ${PNG_LIBRARIES} ${ZLIB_LIBRARIES})
target_include_directories(heif-thumbnailer PRIVATE ${PNG_INCLUDE_DIR})
target_include_directories(heif-thumbnailer PRIVATE ${ZLIB_INCLUDE_DIRS})

Expand Down
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 d0353c8

Please sign in to comment.