From 44103948d4b052603c0b361448ecb4ef7d954f79 Mon Sep 17 00:00:00 2001 From: Juergen Gehring Date: Fri, 7 Apr 2017 01:32:39 -0700 Subject: CommonAPI-D-Bus 3.1.11.1 --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 350a1ed..b40aa56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -177,8 +177,12 @@ include_directories( ${DBus_INCLUDE_DIRS} ) -if ("${USE_INSTALLED_DBUS}" STREQUAL "OFF") - set (DBus_LIBRARIES dbus-1) +if ("${USE_INSTALLED_DBUS}" STREQUAL "ON") + link_directories( + ${DBus_LIBRARY_DIRS} + ) +else() + set (DBus_LIBRARIES dbus-1) link_directories( ${DBus_INCLUDE_DIRS}/dbus/.libs ) -- cgit v1.2.1