Commit 928d6b57 authored by Harald Sitter's avatar Harald Sitter 😷

make docbook compilation optional

Summary:
khelpcenter isn't nearly as omnipresent as it was and redirecting the user
to the html render of the documentation online is a very common occurance.
in particular on Windows where I think we do not even ship the docbooks
at all.

Test Plan: cmake reports dep as optional

Reviewers: kfunk, sandsmark, adridg

Reviewed By: adridg

Subscribers: kde-utils-devel

Differential Revision: https://phabricator.kde.org/D8932
parent 30f2d1b5
......@@ -41,9 +41,9 @@ find_package(Qt5 5.4 CONFIG REQUIRED Core Widgets)
find_package(KF5 REQUIRED
XmlGui # For app
KIO # For part
DocTools
I18n
)
find_package(KF5DocTools) # Optional, not needed on Windows for example.
add_definitions(
-DQT_USE_FAST_CONCATENATION
......@@ -59,5 +59,7 @@ include_directories(src/)
add_subdirectory(src)
add_subdirectory(misc)
add_subdirectory(doc)
if (KF5DocTools_FOUND)
add_subdirectory(doc)
endif()
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
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