mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-04 17:30:55 +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:
parent
c5fdcc41de
commit
997977c67a
|
@ -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"
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user