┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlex Richardson <[email protected]>2021-07-09 09:19:05 +0100
committerAlex Richardson <[email protected]>2021-07-09 09:19:05 +0100
commit997977c67a13dd0766f80a9f54631057538a6997 (patch)
tree5d09e9910f773f972ebdb7eafc858801ca6218e9 /doc
parentc5fdcc41ded2111b72d7163e51f558fbaded79cc (diff)
Make the KDocTools dependency optional
I am cross-compiling dolphin and haven't build KDocTools. Since it's only needed for the handbook we can make the dependency optional.
Diffstat (limited to 'doc')
-rw-r--r--doc/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 5d8e54edb..934f7a9ff 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -1,2 +1,4 @@
-kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR dolphin)
+if (KF5DocTools_FOUND)
+ kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR dolphin)
+endif()