From bb2d811649feed5d6a188c3342857554e9652f57 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 1 Jan 2016 02:15:35 +0200 Subject: [PATCH] cmake: add option for building against katie Signed-off-by: Ivailo Monev --- cmake/modules/FindKDE4Internal.cmake | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cmake/modules/FindKDE4Internal.cmake b/cmake/modules/FindKDE4Internal.cmake index 62c42d4a..4447e7fe 100644 --- a/cmake/modules/FindKDE4Internal.cmake +++ b/cmake/modules/FindKDE4Internal.cmake @@ -288,10 +288,15 @@ set(QT_USE_IMPORTED_TARGETS TRUE) #this line includes FindQt4.cmake, which searches the Qt library and headers # TODO: we should check here that all necessary modules of Qt have been found, e.g. QtDBus -set(KATIE_COMPAT TRUE) +option(WITH_KATIE "Build against Katie instead of Qt4" OFF) +add_feature_info(katie WITH_KATIE "Building against Katie is EXPERIMENTAL") + find_package(Katie) -if(NOT KATIE_FOUND) +if(WITH_KATIE AND NOT KATIE_FOUND) find_package(Qt4 ${_REQ_STRING_KDE4}) +else() + # avoid the need to check WITH_KATIE in addition to KATIE_FOUND + set(KATIE_FOUND FALSE) endif() # Perl is not required for building KDE software but is during runtime from