diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index be80ec3a..114a9237 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -67,7 +67,6 @@ FIND_LIBRARY(LIB_EV ev) IF(WITH_DBUS) pkg_check_modules(DBUS dbus-1) IF(DBUS_FOUND) - ADD_DEFINITIONS(-DWITH_DBUS) SET(AWE_MOD_LIBRARIES ${AWE_MOD_LIBRARIES} ${DBUS_LIBRARIES}) SET(AWE_MOD_INCLUDE_DIRS ${AWE_MOD_INCLUDE_DIRS} ${DBUS_INCLUDE_DIRS}) ELSE() @@ -79,7 +78,6 @@ ENDIF() IF(WITH_IMLIB2) pkg_check_modules(IMLIB2 imlib2) IF(IMLIB2_FOUND) - ADD_DEFINITIONS(-DWITH_IMLIB2) SET(AWE_MOD_LIBRARIES ${AWE_MOD_LIBRARIES} ${IMLIB2_LIBRARIES}) SET(AWE_MOD_INCLUDE_DIRS ${AWE_MOD_INCLUDE_DIRS} ${IMLIB2_INCLUDE_DIRS}) ELSE() diff --git a/config.h.in b/config.h.in index 9b9e5191..64b99320 100644 --- a/config.h.in +++ b/config.h.in @@ -6,4 +6,7 @@ #define AWESOME_CONF_PATH "@AWESOME_CONF_PATH@" #define VERSION "@VERSION@" +#cmakedefine WITH_DBUS +#cmakedefine WITH_IMLIB2 + #endif //_CONFIG_H_