Commit 997977c6 authored by Alex Richardson's avatar Alex Richardson
Browse files

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.
parent c5fdcc41
Pipeline #69391 passed with stage
in 4 minutes and 41 seconds
......@@ -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"
......
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()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment