From 061cd0a6176b1e3f5f8ee6720b5fe07372552bf2 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Thu, 28 Feb 2013 12:27:36 +0000 Subject: Fixed CMake linux builds; they require rt library. --- diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 9a37e40..8fcddcc 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -493,8 +493,13 @@ if (DBUS_BUILD_TESTS) endif (WIN32) endif (DBUS_BUILD_TESTS) -set(DBUS_LIBRARIES dbus-1) -set(DBUS_INTERNAL_LIBRARIES dbus-internal) +if (UNIX) + set(DBUS_LIBRARIES dbus-1 rt) + set(DBUS_INTERNAL_LIBRARIES dbus-internal rt) +else () + set(DBUS_LIBRARIES dbus-1) + set(DBUS_INTERNAL_LIBRARIES dbus-internal) +endif () # settings for building and using static internal lib # important note: DBUS_INTERNAL_xxxxx_DEFINITIONS must *not* be set when building dbus-1 library -- cgit v0.9.0.2-2-gbebe