Remove private dependencies from the cmake config file
authorPino Toscano <pino@debian.org>
Thu, 5 Sep 2024 17:02:33 +0000 (19:02 +0200)
committerPino Toscano <pino@debian.org>
Thu, 5 Sep 2024 17:02:33 +0000 (19:02 +0200)
Forwarded: no
Last-Update: 2023-11-15

The cmake config file requires the private dependencies used by exiv2; since
those are needed only for static linking, and that there are no static
libraries, simply stop requiring them in the cmake config file.

Gbp-Pq: Name cmake-no-private.diff

cmake/exiv2Config.cmake.in

index c9e2eba9b59025cc5b143841cca413879758db20..eabe3f4f0c8e3d39d7be41c3b142877d53f2ab8a 100644 (file)
@@ -3,14 +3,6 @@
 cmake_minimum_required(VERSION 3.5)
 include(CMakeFindDependencyMacro)
 
-if(@EXIV2_ENABLE_PNG@) # if(EXIV2_ENABLE_PNG)
-  find_dependency(ZLIB REQUIRED)
-endif()
-
-if(@EXIV2_ENABLE_XMP@) # if(EXIV2_ENABLE_XMP)
-  find_dependency(EXPAT REQUIRED)
-endif()
-
 include("${CMAKE_CURRENT_LIST_DIR}/exiv2Export.cmake")
 
 check_required_components(exiv2)