Blame SOURCES/0067-cmake-Use-correct-installation-dir-for-cmake-config-.patch

bab77a
From 420e4631da1372da1be06af8f6032429c1f14d02 Mon Sep 17 00:00:00 2001
bab77a
From: Andreas Schneider <asn@cryptomilk.org>
bab77a
Date: Thu, 3 Jan 2019 10:18:27 +0100
bab77a
Subject: [PATCH 67/70] cmake: Use correct installation dir for cmake config
bab77a
 files
bab77a
bab77a
This is the path cmake will look for those files by default. At least on
bab77a
UNIX systems.
bab77a
bab77a
Fixes #623
bab77a
bab77a
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
bab77a
---
bab77a
 releasenotes/CYGWIN/ReadMe.txt | 2 +-
bab77a
 releasenotes/Darwin/ReadMe.txt | 2 +-
bab77a
 releasenotes/Linux/ReadMe.txt  | 1 +
bab77a
 releasenotes/MinGW/ReadMe.txt  | 2 +-
bab77a
 releasenotes/msvc/ReadMe.txt   | 2 +-
bab77a
 releasenotes/releasenotes.txt  | 5 +++++
bab77a
 src/CMakeLists.txt             | 2 +-
bab77a
 7 files changed, 11 insertions(+), 5 deletions(-)
bab77a
bab77a
diff --git a/releasenotes/CYGWIN/ReadMe.txt b/releasenotes/CYGWIN/ReadMe.txt
bab77a
index 9161ca34..bba70fe6 100644
bab77a
--- a/releasenotes/CYGWIN/ReadMe.txt
bab77a
+++ b/releasenotes/CYGWIN/ReadMe.txt
bab77a
@@ -7,9 +7,9 @@ Structure of the bundle:
bab77a
 bin/exiv2.exe                             exiv2 and sample applications
bab77a
 bin/cygexiv2-27.dll                       DLL
bab77a
 lib/libexiv2.dll.a & libxmp.a             link libraries
bab77a
+lib/cmake/exiv2                           consume CMake files
bab77a
 lib/pkgconfig/exiv2.pc                    pkg-config file
bab77a
 share/man                                 man pages
bab77a
-share/exiv2/cmake                         consume CMake files
bab77a
 samples/exifprint.cpp                     sample code
bab77a
 logs                                      build and test logs
bab77a
 
bab77a
diff --git a/releasenotes/Darwin/ReadMe.txt b/releasenotes/Darwin/ReadMe.txt
bab77a
index d3e61177..57910713 100644
bab77a
--- a/releasenotes/Darwin/ReadMe.txt
bab77a
+++ b/releasenotes/Darwin/ReadMe.txt
bab77a
@@ -6,10 +6,10 @@ Structure of the bundle
bab77a
 
bab77a
 bin/exiv2                                 exiv2 and sample applications
bab77a
 lib/libexiv2.0.27.0.0.dylib & libxmp.a    libraries
bab77a
+lib/cmake/exiv2                           consume CMake files
bab77a
 lib/pkgconfig/exiv2.pc                    pkg-config file
bab77a
 include/exiv2/                            include files
bab77a
 share/man                                 man pages
bab77a
-share/exiv2/cmake                         consume CMake files
bab77a
 samples/exifprint.cpp                     sample code
bab77a
 logs                                      build and test logs
bab77a
 
bab77a
diff --git a/releasenotes/Linux/ReadMe.txt b/releasenotes/Linux/ReadMe.txt
bab77a
index 03348302..0737b3a4 100644
bab77a
--- a/releasenotes/Linux/ReadMe.txt
bab77a
+++ b/releasenotes/Linux/ReadMe.txt
bab77a
@@ -7,6 +7,7 @@ Structure of the bundle:
bab77a
 bin/exiv2                                 exiv2 and sample applications
bab77a
 lib/libexiv2.so.0.27.0.0 & libxmp.a       libraries
bab77a
 lib/pkgconfig/exiv2.pc                    pkg-config file
bab77a
+lib/cmake/exiv2                           consume CMake files
bab77a
 include/exiv2/                            include files
bab77a
 share/                                    man pages
bab77a
 samples/exifprint.cpp                     sample code
bab77a
diff --git a/releasenotes/MinGW/ReadMe.txt b/releasenotes/MinGW/ReadMe.txt
bab77a
index 884d7502..98cd7770 100644
bab77a
--- a/releasenotes/MinGW/ReadMe.txt
bab77a
+++ b/releasenotes/MinGW/ReadMe.txt
bab77a
@@ -7,10 +7,10 @@ Structure of the bundle:
bab77a
 bin/exiv2.exe                             exiv2 and sample applications
bab77a
 bin/msys-exiv2-27.dll                     exiv2 dll
bab77a
 lib/libexiv2.dll.a & libxmp.a             link libraries
bab77a
+lib/cmake/exiv2                           consume CMake files
bab77a
 lib/pkgconfig/exiv2.pc                    pkg-config file
bab77a
 include/exiv2/                            include files
bab77a
 share/man                                 man pages
bab77a
-share/exiv2/cmake                         consume CMake files
bab77a
 samples/exifprint.cpp                     sample code
bab77a
 logs                                      build and test logs
bab77a
 
bab77a
diff --git a/releasenotes/msvc/ReadMe.txt b/releasenotes/msvc/ReadMe.txt
bab77a
index de1dcbfe..e625ab49 100644
bab77a
--- a/releasenotes/msvc/ReadMe.txt
bab77a
+++ b/releasenotes/msvc/ReadMe.txt
bab77a
@@ -7,8 +7,8 @@ Structure of the bundle:
bab77a
 bin/exiv2.exe                             exiv2 and sample applications
bab77a
 bin/exiv2.dll                             dll
bab77a
 lib/exiv2.lib & xmp.lib                   link libraries
bab77a
+lib/cmake/exiv2                           consume CMake files
bab77a
 include/exiv2/                            include files
bab77a
-share/exiv2/cmake                         consume CMake files
bab77a
 samples/exifprint.cpp                     sample code
bab77a
 logs                                      build and test logs
bab77a
 
bab77a
diff --git a/releasenotes/releasenotes.txt b/releasenotes/releasenotes.txt
bab77a
index b71b4519..226c078b 100644
bab77a
--- a/releasenotes/releasenotes.txt
bab77a
+++ b/releasenotes/releasenotes.txt
bab77a
@@ -1,3 +1,8 @@
bab77a
+Exiv2 v0.27.1
bab77a
+-------------
bab77a
+
bab77a
+#623 Use correct installation path for generated docs and cmake config files
bab77a
+
bab77a
 Exiv2 v0.27.0
bab77a
 -------------
bab77a
 
bab77a
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
bab77a
index adb285b1..4a05ee4f 100644
bab77a
--- a/src/CMakeLists.txt
bab77a
+++ b/src/CMakeLists.txt
bab77a
@@ -234,7 +234,7 @@ install(FILES
bab77a
     ${CMAKE_BINARY_DIR}/exiv2lib_export.h
bab77a
     DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/exiv2)
bab77a
 
bab77a
-install(EXPORT exiv2Config DESTINATION "share/exiv2/cmake")
bab77a
+install(EXPORT exiv2Config DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/exiv2")
bab77a
 
bab77a
 # ******************************************************************************
bab77a
 # exiv2 application
bab77a
-- 
bab77a
2.17.2
bab77a