head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2019.11.17.02.36.54; author markd; state dead; branches; next 1.1; commitid ui4L7gGk96iMi9LB; 1.1 date 2019.11.02.13.51.12; author maya; state Exp; branches; next ; commitid i3KX6tVSqBb5whJB; desc @@ 1.2 log @libkexiv2: update to 19.08.3 qt5/kf5 version @ text @$NetBSD: patch-CMakeLists.txt,v 1.1 2019/11/02 13:51:12 maya Exp $ Workaround kdelibs4's FindExiv2.cmake not matching for newer exiv2. Use pkgconfig instead. --- CMakeLists.txt.orig 2015-04-30 19:04:22.000000000 +0000 +++ CMakeLists.txt @@@@ -10,6 +10,7 @@@@ message(STATUS "------------------------ message(STATUS "Starting CMake configuration for: libkexiv2") find_package(KDE4 REQUIRED) +find_package(PkgConfig) include(KDE4Defaults) include(MacroLibrary) @@@@ -23,8 +24,7 @@@@ include_directories(${QDBUS_INCLUDE_DIRS set(LIBKEXIV2_AREA_CODE_GENERAL 51003) add_definitions(-DKDE_DEFAULT_DEBUG_AREA=${LIBKEXIV2_AREA_CODE_GENERAL}) -set(EXIV2_MIN_VERSION "0.24") -find_package(Exiv2) +pkg_check_modules(EXIV2 exiv2>=0.25) MACRO_LOG_FEATURE(EXIV2_FOUND "Exiv2" "Required to build libkexiv2." "http://www.exiv2.org" TRUE ${EXIV2_MIN_VERSION} "") @ 1.1 log @libkexiv2: fix build with newer exiv2. @ text @d1 1 a1 1 $NetBSD$ @