summaryrefslogtreecommitdiff
path: root/media-gfx/symboleditor/files/symboleditor-2.0.0-doc-optional.patch
blob: 3434e90c6122097e164f1971b3e5da07f9e8d07d (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 2b809c68d40a3d0af2da668bad3f4d9ced86f56e Mon Sep 17 00:00:00 2001
From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
Date: Thu, 10 Mar 2016 20:26:57 +0100
Subject: KF5DocTools is optional, so add doc subdir conditionally

REVIEW: 127336
---
 CMakeLists.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d88174a..da7458f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,7 +60,10 @@ file (GLOB SymbolEditor_UI ${CMAKE_CURRENT_SOURCE_DIR}/ui/*.ui)
 ki18n_wrap_ui (SymbolEditor_SRCS ${SymbolEditor_UI})
 
 add_subdirectory (icons)
-add_subdirectory (doc)
+
+if (KF5DocTools_FOUND)
+    add_subdirectory (doc)
+endif (KF5DocTools_FOUND)
 
 kconfig_add_kcfg_files (SymbolEditor_SRCS SymbolEditor.kcfgc)
 
-- 
cgit v1.1