summaryrefslogtreecommitdiff
blob: 164e49c170c58764b037b8d4cae91a7ab50305cb (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 d4b3b521cc398d85340075d99a2bf6964f13b544 Mon Sep 17 00:00:00 2001
From: Andreas Sturmlechner <asturm@gentoo.org>
Date: Sat, 24 Apr 2021 11:38:58 +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 2e2512f..3d6c86a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -120,5 +120,7 @@ ecm_qt_install_logging_categories(
 
 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
 ki18n_install(po)
-kdoctools_install(po)
+if(KF5DocTools_FOUND)
+    kdoctools_install(po)
+endif()
 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
-- 
2.31.1