From 56d6e3726b1898253627c132256863dd467a632a Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 9 May 2009 19:59:27 +0200 Subject: [PATCH] Use _LDFLAGS instead of _LIBRARIES The _LDFLAGS vars which pkg_check_modules() set also include -L flags which are necessary so that the linker can find the libs it needs to find. Signed-off-by: Uli Schlachter --- awesomeConfig.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)