Make --syslog option work again
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 31 Mar 2014 20:12:28 +0000 (22:12 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 31 Mar 2014 20:12:28 +0000 (22:12 +0200)
The -DHAVE_SYSLOG was missing for compiling main() after the recent
build system changes, so the option wasn't enabled (but caused a
warning).

src/CMakeLists.txt

index 3575f52..a644934 100644 (file)
@@ -30,6 +30,11 @@ if (WITH_OXYGEN)
     add_definitions(-DWITH_OXYGEN)
 endif()
 
+# Needed for showing the cli option if appropriate
+if (HAVE_SYSLOG)
+    add_definitions(-DHAVE_SYSLOG)
+endif()
+
 if(WANT_CORE)
   add_executable(quasselcore common/main.cpp ${CORE_DEPS} ${COMMON_DEPS})
   qt_use_modules(quasselcore Core Network ${CORE_QT_MODULES})