notifications: Fix cmake error without cache
include (LibAddMacros)
+IF (NOT PLUGIN_INTERNALNOTIFICATION_VERBOSE)
+ SET (PLUGIN_INTERNALNOTIFICATION_VERBOSE "0" CACHE STRING "Enable verbose output for internalnotification plugin")
+ENDIF (NOT PLUGIN_INTERNALNOTIFICATION_VERBOSE)
+
+MARK_AS_ADVANCED(
+ PLUGIN_INTERNALNOTIFICATION_VERBOSE
+)
+
add_plugin (internalnotification
SOURCES
internalnotification.h
@@ -8,11 +16,3 @@ add_plugin (internalnotification
COMPILE_DEFINITIONS
PLUGIN_INTERNALNOTIFICATION_VERBOSE=${PLUGIN_INTERNALNOTIFICATION_VERBOSE}
)
-
-MARK_AS_ADVANCED(
- PLUGIN_INTERNALNOTIFICATION_VERBOSE
-)
-
-IF (NOT PLUGIN_INTERNALNOTIFICATION_VERBOSE)
- SET (PLUGIN_INTERNALNOTIFICATION_VERBOSE "0" CACHE STRING "Enable verbose output for internalnotification plugin")
-ENDIF (NOT PLUGIN_INTERNALNOTIFICATION_VERBOSE)
