1--- a/CMakeLists.txt 2016-05-26 11:31:16.000000000 +0200
2+++ b/CMakeLists.txt 2016-07-22 19:07:22.074669909 +0200
3@@ -320,12 +320,12 @@
4
5 # ======== libexif ==========
6
7-find_package(EXIF)
8-if( NOT EXIF_FOUND )
9- message( "EXIF library (libexif) not found. 'pfsalign' will not be compiled" )
10-else( NOT EXIF_FOUND )
11- message(STATUS "libexif library found.")
12-endif( NOT EXIF_FOUND )
13+find_package( PkgConfig REQUIRED )
14+pkg_check_modules( MYPKG REQUIRED libexif IlmBase )
15+if( MYPKG_FOUND )
16+ message( STATUS "libexif and IlmBase found." )
17+endif( MYPKG_FOUND )
18+include_directories( ${MYPKG_INCLUDE_DIRS} )
19
20 # ======== Config and sub dirs ===========
21