浏览代码

Don't enable D-Bus on Windows/OSX by default

Really not sure how the option logic is supposed to work. But currently
it will try to enable the QtDBus module on any OS.
Vincent Lang 8 年之前
父节点
当前提交
fe556e144c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -19,7 +19,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "" FORCE)
 option(OPENELEC "Make an OpenELEC build" OFF)
 option(LINUX_X11POWER "Enable non D-Bus screensaver management" OFF)
 
-if(NOT LINUX_X11POWER)
+if((NOT LINUX_X11POWER) AND (UNIX AND (NOT APPLE)))
   set(LINUX_DBUS ON)
 endif()