build-sys: make sure libdbus pulls in -lrt for the linker.
authorJaska Uimonen <jaska.uimonen@helsinki.fi>
Thu, 7 Jun 2012 07:55:56 +0000 (10:55 +0300)
committerJaska Uimonen <jaska.uimonen@helsinki.fi>
Fri, 8 Jun 2012 19:27:52 +0000 (22:27 +0300)
cmake/FindDBUS.cmake

index 2d2cd9e..99bfe4a 100644 (file)
@@ -34,6 +34,7 @@ PATHS /${LIBDIR}
 SET( DBUS_FOUND "NO" )
 IF(DBUS_LIBRARY)
     SET( DBUS_FOUND "YES" )
+    SET ( DBUS_LIBRARY ${DBUS_LIBRARY} -lrt)
     message(STATUS "Found DBUS libs: ${DBUS_LIBRARY}")
     message(STATUS "Found DBUS include: ${DBUS_INCLUDE_DIR}")
     message(STATUS "Found DBUS arch dependent include: ${DBUS_ARCH_INCLUDE_DIR}")