summaryrefslogtreecommitdiff
path: root/app-text/kbibtex/files/kbibtex-doctools-optional.patch
blob: 57527b02aebe6d4330c5d79a4fa23495942b1c08 (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
32
33
34
35
36
37
38
39
40
commit d23557e8a5c4170c5d2a20cb17421e5f0b303f94
Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
Date:   Sun Mar 13 12:22:09 2016 +0100

    Make KF5DocTools optional

diff --git a/CMakeLists.txt b/CMakeLists.txt
index eb33c9e..0525db1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,7 +61,6 @@ find_package(
 find_package(
     KF5 ${KF5_MIN_VERSION}
     REQUIRED
-    DocTools
     I18n
     XmlGui
     KIO
@@ -74,6 +73,8 @@ find_package(
     Wallet
 )
 
+find_package(KF5DocTools)
+
 # Version number for the exported headers / libs
 set(
     VERSION_BRANCH "0.8"
@@ -182,9 +183,9 @@ add_subdirectory(
 add_subdirectory(
     xslt
 )
+if(KF5DocTools_FOUND)
+	add_subdirectory(doc)
+endif()
-add_subdirectory(
-    doc
-)
 add_subdirectory(
     mime
 )