@@ -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})