OSDN Git Service

kwin: disable kappmenu when dbusmenu-qt is not found
authorIvailo Monev <xakepa10@laimg.moc>
Thu, 8 Sep 2016 20:05:53 +0000 (20:05 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Thu, 8 Sep 2016 20:05:53 +0000 (20:05 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
kwin/CMakeLists.txt

index c5a76de..3d9f42f 100644 (file)
@@ -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