1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-02 16:31:23 +00:00

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.
This commit is contained in:
Alex Richardson 2021-07-09 09:19:05 +01:00
parent c5fdcc41de
commit 997977c67a
2 changed files with 4 additions and 2 deletions

View 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"

View 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()