diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 727e1abf3..a27d0ed8e 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -175,7 +175,7 @@ if(NOT LUA51_FOUND AND NOT LUA50_FOUND) # This is a workaround to a cmake bug endif() set(AWESOME_REQUIRED_LIBRARIES - ${AWESOME_COMMON_REQUIRED_LIBRARIES} + ${AWESOME_COMMON_REQUIRED_LDFLAGS} ${AWESOME_REQUIRED_LIBRARIES} ${LIB_EV} ${LUA_LIBRARIES}) @@ -195,7 +195,7 @@ set(AWESOME_REQUIRED_INCLUDE_DIRS if(WITH_DBUS) pkg_check_modules(DBUS dbus-1) if(DBUS_FOUND) - set(AWESOME_OPTIONAL_LIBRARIES ${AWESOME_OPTIONAL_LIBRARIES} ${DBUS_LIBRARIES}) + set(AWESOME_OPTIONAL_LIBRARIES ${AWESOME_OPTIONAL_LIBRARIES} ${DBUS_LDFLAGS}) set(AWESOME_OPTIONAL_INCLUDE_DIRS ${AWESOME_OPTIONAL_INCLUDE_DIRS} ${DBUS_INCLUDE_DIRS}) else() set(WITH_DBUS OFF)