From 8b4f39900a4f06bb903d7c5c9b7e79782917c6ac Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Fri, 20 Jun 2008 14:57:03 +0200 Subject: [PATCH] cmake: add WITH_IMLIB2 WITH_DBUS to config.h.in --- awesomeConfig.cmake | 2 -- config.h.in | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index be80ec3a8..114a9237f 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 9b9e51918..64b993207 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_