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 <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2009-05-09 19:59:27 +02:00 committed by Julien Danjou
parent 02e39eb8e0
commit 56d6e3726b
1 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ if(NOT LUA51_FOUND AND NOT LUA50_FOUND) # This is a workaround to a cmake bug
endif() endif()
set(AWESOME_REQUIRED_LIBRARIES set(AWESOME_REQUIRED_LIBRARIES
${AWESOME_COMMON_REQUIRED_LIBRARIES} ${AWESOME_COMMON_REQUIRED_LDFLAGS}
${AWESOME_REQUIRED_LIBRARIES} ${AWESOME_REQUIRED_LIBRARIES}
${LIB_EV} ${LIB_EV}
${LUA_LIBRARIES}) ${LUA_LIBRARIES})
@ -195,7 +195,7 @@ set(AWESOME_REQUIRED_INCLUDE_DIRS
if(WITH_DBUS) if(WITH_DBUS)
pkg_check_modules(DBUS dbus-1) pkg_check_modules(DBUS dbus-1)
if(DBUS_FOUND) 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}) set(AWESOME_OPTIONAL_INCLUDE_DIRS ${AWESOME_OPTIONAL_INCLUDE_DIRS} ${DBUS_INCLUDE_DIRS})
else() else()
set(WITH_DBUS OFF) set(WITH_DBUS OFF)