From 1bae97b00266fdd6d97336a91969dff7139e1848 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Thu, 8 Sep 2016 20:05:53 +0000 Subject: [PATCH] kwin: disable kappmenu when dbusmenu-qt is not found Signed-off-by: Ivailo Monev --- kwin/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kwin/CMakeLists.txt b/kwin/CMakeLists.txt index c5a76de7..3d9f42fb 100644 --- a/kwin/CMakeLists.txt +++ b/kwin/CMakeLists.txt @@ -7,6 +7,11 @@ option(KWIN_BUILD_SCREENEDGES "Enable building of KWin with screen edge support" option(KWIN_BUILD_KAPPMENU "Enable building of KWin with application menu support" ON) option(KWIN_BUILD_COMPOSITE "Enable building of KWin with XRender Compositing support" ON) +# without dbusmenu-qt the functionality is useless +if(NOT DBUSMENUQT_FOUND) + set(KWIN_BUILD_KAPPMENU OFF) +endif() + include_directories(${XCB_INCLUDE_DIR}) # for kwin internal things -- 2.11.0