summaryrefslogtreecommitdiff
path: root/kde-apps/filelight/files/filelight-21.04.0-kdoctools_install.patch
blob: e9d4c6444f6577c6a6d14335b080f4a3a8851a7f (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
From 0db4a8c6b941800d0616e726ebf3f2e751f2293d Mon Sep 17 00:00:00 2001
From: Andreas Sturmlechner <asturm@gentoo.org>
Date: Sat, 24 Apr 2021 11:34:46 +0200
Subject: [PATCH] Hide kdoctools_install() behind KF5DocTools_FOUND conditional

The dependency is optional in this package so the macro call must be too.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
---
 CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b8c5c73..72e80dc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,5 +56,7 @@ if (KF5DocTools_FOUND)
 endif()
 
 ki18n_install(po)
-kdoctools_install(po)
+if (KF5DocTools_FOUND)
+    kdoctools_install(po)
+endif()
 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
-- 
2.31.1