Blame SOURCES/0022-cmake-man-pages-only-installed-with-the-exiv2-app.patch

bab77a
From d1c609b320eadbe7089b0482353ffef576813ca2 Mon Sep 17 00:00:00 2001
bab77a
From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= <piponazo@gmail.com>
bab77a
Date: Tue, 18 Dec 2018 08:05:16 +0100
bab77a
Subject: [PATCH 22/70] cmake: man pages only installed with the exiv2 app
bab77a
bab77a
---
bab77a
 CMakeLists.txt     | 3 ---
bab77a
 src/CMakeLists.txt | 7 +------
bab77a
 2 files changed, 1 insertion(+), 9 deletions(-)
bab77a
bab77a
diff --git a/CMakeLists.txt b/CMakeLists.txt
bab77a
index 8dfd9d97..e98cfac1 100644
bab77a
--- a/CMakeLists.txt
bab77a
+++ b/CMakeLists.txt
bab77a
@@ -106,6 +106,3 @@ configure_file(cmake/exiv2.pc.in exiv2.pc @ONLY)
bab77a
 install(FILES ${CMAKE_BINARY_DIR}/exiv2.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
bab77a
 
bab77a
 include(cmake/printSummary.cmake)
bab77a
-
bab77a
-# That's all Folks!
bab77a
-##
bab77a
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
bab77a
index ca24006e..0d093924 100644
bab77a
--- a/src/CMakeLists.txt
bab77a
+++ b/src/CMakeLists.txt
bab77a
@@ -273,11 +273,6 @@ if(EXIV2_BUILD_EXIV2_COMMAND)
bab77a
     endif()
bab77a
 
bab77a
     install(TARGETS exiv2 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
bab77a
+    install( FILES exiv2.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 )
bab77a
 endif()
bab77a
 
bab77a
-# ******************************************************************************
bab77a
-# Man page
bab77a
-install( FILES exiv2.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 )
bab77a
-
bab77a
-# That's all Folks!
bab77a
-##
bab77a
-- 
bab77a
2.17.2
bab77a