From d79869737ed5e12b3de156c667fb15aa1800459f Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Tue, 25 Jul 2023 16:05:01 +0000 Subject: [PATCH] Make ZLIB depend on EXIV2_ENABLE_PNG Signed-off-by: Ryan Friedman --- cmake/exiv2Config.cmake.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/exiv2Config.cmake.in b/cmake/exiv2Config.cmake.in index 0137e94ec4..826fd94b0d 100644 --- a/cmake/exiv2Config.cmake.in +++ b/cmake/exiv2Config.cmake.in @@ -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")