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 <ryan.friedman+github@avinc.com>
  • Loading branch information
Ryanf55 committed Jul 25, 2023
1 parent 4d48af9 commit d798697
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 d798697

Please sign in to comment.