From: Alex Richardson Date: Fri, 9 Jul 2021 08:19:05 +0000 (+0100) Subject: Make the KDocTools dependency optional X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/997977c67a13dd0766f80a9f54631057538a6997 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. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a949ab2e6..2667c26dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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" 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()