Skip to content

Commit

Permalink
Make ZLIB depend on EXIV2_ENABLE_PNG
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 authored and neheb committed Jul 26, 2023
1 parent a8c3455 commit 5e1cf4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/exiv2Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
cmake_minimum_required(VERSION 3.16.3)
include(CMakeFindDependencyMacro)

find_dependency(ZLIB REQUIRED)
if(@EXIV2_ENABLE_PNG@) # if(EXIV2_ENABLE_PNG)
find_dependency(ZLIB REQUIRED)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/exiv2Export.cmake")

Expand Down

0 comments on commit 5e1cf4d

Please sign in to comment.