summaryrefslogtreecommitdiff
path: root/kde-misc/plasma-pass/files/plasma-pass-1.2.0-fix-loggingcategories-dir.patch
blob: 5131f7dd54b26558a784acd51d0be9d3867febb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 5f62fcc30e7d6c8248dfb6a263ee4a49e7c19e3b Mon Sep 17 00:00:00 2001
From: Pino Toscano <pino@kde.org>
Date: Wed, 17 Feb 2021 21:02:08 +0100
Subject: [PATCH] cmake: install plasma-pass.categories in newer location

Install plasma-pass.categories in the proper location for it, in case
ECM >= 5.59.0 is used.
---
 CMakeLists.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c0bed60..c32b637 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -53,7 +53,11 @@ add_subdirectory(plugin)
 if (BUILD_TESTING)
     add_subdirectory(tests)
 endif()
-install( FILES plasma-pass.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
+if(ECM_VERSION VERSION_GREATER_EQUAL 5.59)
+    install(FILES plasma-pass.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
+else()
+    install(FILES plasma-pass.categories DESTINATION ${KDE_INSTALL_CONFDIR})
+endif()
 
 if(ECM_VERSION VERSION_GREATER_EQUAL 5.79)
     kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
-- 
GitLab