From 997977c67a13dd0766f80a9f54631057538a6997 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Fri, 9 Jul 2021 09:19:05 +0100 Subject: 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. --- doc/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 5d8e54edb..934f7a9ff 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -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() -- cgit v1.3