From 0db4a8c6b941800d0616e726ebf3f2e751f2293d Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sat, 24 Apr 2021 11:34:46 +0200 Subject: [PATCH] Hide kdoctools_install() behind KF5DocTools_FOUND conditional The dependency is optional in this package so the macro call must be too. Signed-off-by: Andreas Sturmlechner --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b8c5c73..72e80dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,5 +56,7 @@ if (KF5DocTools_FOUND) endif() ki18n_install(po) -kdoctools_install(po) +if (KF5DocTools_FOUND) + kdoctools_install(po) +endif() feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) -- 2.31.1