Browse Source

Update CMakeLists.txt

Maldela 10 years ago
parent
commit
ff8a93a086
1 changed files with 4 additions and 2 deletions
  1. 4 2
      helper/CMakeLists.txt

+ 4 - 2
helper/CMakeLists.txt

@@ -3,9 +3,11 @@ kauth_install_actions(fancontrol.gui.helper fancontrol-gui.actions)
 
 set(LIBRARIES KF5::Auth)
 
-if(NOT NO_SYSTEMD)
+if(NO_SYSTEMD)
+    add_definitions(-DNO_SYSTEMD)
+else(NO_SYSTEMD)
     set(LIBRARIES ${LIBRARIES} Qt5::DBus)
-endif(NOT NO_SYSTEMD)
+endif(NO_SYSTEMD)
 
 add_executable(Fancontrol-GUIHelper src/helper.cpp)
 target_link_libraries(Fancontrol-GUIHelper ${LIBRARIES})