aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Sitter <[email protected]>2017-11-22 11:48:52 +0100
committerHarald Sitter <[email protected]>2017-12-07 00:41:27 +0100
commit928d6b57f3db6084623cd1ce4e1eb4148e932a63 (patch)
treec0e0f510eed38d761990702c2adfb9e610abaf24
parent30f2d1b5293789175267a4bd18ae78970fe13ed0 (diff)
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
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b8b6eda..be2e696 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)