Make FindExiv2.cmake work with exiv 0.27.

Authored by krop on Nov 20 2018, 9:59 AM.

Description

Make FindExiv2.cmake work with exiv 0.27.

Summary:
In exiv2 >= 0.27, the version is not defined in version.hpp but in exv_conf.h.
The module now:

  • tries to use the version in the pkgconfig file,
  • If it's not (or cannot be) found, it parses both files to find it.

The module was also refreshed to use the modern CMake syntax and follow our
CMake policies.

Test Plan: exiv2 0.26 and 0.27 are found.

Reviewers: kde-buildsystem

Tags: Gwenview

Differential Revision: https://phabricator.kde.org/D17040

Details

Committed
kropNov 30 2018, 10:30 AM
Differential Revision
D17040: Make FindExiv2.cmake work with exiv 0.27.
Parents
R260:a057005b56c3: GIT_SILENT Upgrade KDE Applications version to 18.11.90.
Branches
Unknown
Tags
Unknown