]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Make the KDocTools dependency optional
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Fri, 9 Jul 2021 08:19:05 +0000 (09:19 +0100)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Fri, 9 Jul 2021 08:19:05 +0000 (09:19 +0100)
I am cross-compiling dolphin and haven't build KDocTools. Since it's only
needed for the handbook we can make the dependency optional.

CMakeLists.txt
doc/CMakeLists.txt

index a949ab2e66759354f1333efc89a6bc83e9144b08..2667c26dc51ce304ff62b4483b21b1952467ec06 100644 (file)
@@ -52,7 +52,6 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
 )
 
 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
-    DocTools
     KCMUtils
     NewStuff
     CoreAddons
@@ -83,6 +82,7 @@ endif()
 
 find_package(KF5 ${KF5_MIN_VERSION} OPTIONAL_COMPONENTS
     Activities
+    DocTools
 )
 set_package_properties(KF5Activities PROPERTIES DESCRIPTION "KActivities libraries"
                        URL "https://www.kde.org"
index 5d8e54edb720363fd07063bd88e7a84f3da24f0d..934f7a9ff4a9e74c38041977e3c6ca52243d099f 100644 (file)
@@ -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()