From 18d04e9b4142a97619f8d14a98b3e38e1734d4a1 Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Sun, 3 Sep 2017 19:15:18 +0200 Subject: [PATCH] Fix build without KDocTools Reviewers: #frameworks Tags: #frameworks Maniphest Tasks: T6711 Differential Revision: https://phabricator.kde.org/D7680 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c498c303..752460201 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,7 +160,9 @@ endif() add_definitions(-DTRANSLATION_DOMAIN=\"libplasma5\") if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") ki18n_install(po) - kdoctools_install(po) + if (KF5DocTools_FOUND) + kdoctools_install(po) + endif() endif() add_subdirectory(src)