summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PluginCommandInterfaceCAPI/test/CMakeLists.txt1
-rw-r--r--cmake/FindCommonAPI_DBus.cmake14
2 files changed, 1 insertions, 14 deletions
diff --git a/PluginCommandInterfaceCAPI/test/CMakeLists.txt b/PluginCommandInterfaceCAPI/test/CMakeLists.txt
index acfc1cf..8dc6bfa 100644
--- a/PluginCommandInterfaceCAPI/test/CMakeLists.txt
+++ b/PluginCommandInterfaceCAPI/test/CMakeLists.txt
@@ -78,7 +78,6 @@ ADD_EXECUTABLE(AmCommandSenderCAPITest ${CAPI_PLUGIN_INTERFACE_SRCS_CXX} ${CAPI_
TARGET_LINK_LIBRARIES(AmCommandSenderCAPITest
${DLT_LIBRARIES}
- ${DBUS_LIBRARY}
${CMAKE_DL_LIBS}
${CMAKE_THREAD_LIBS_INIT}
${PYTHON_LIBRARY}
diff --git a/cmake/FindCommonAPI_DBus.cmake b/cmake/FindCommonAPI_DBus.cmake
index bd9aff4..6343766 100644
--- a/cmake/FindCommonAPI_DBus.cmake
+++ b/cmake/FindCommonAPI_DBus.cmake
@@ -57,19 +57,7 @@ ELSE(COMMON_API_DBUS_FOUND)
ENDIF(COMMON_API_DBUS_FOUND)
-
-FIND_LIBRARY(DBUS_LIBRARY
- NAMES dbus-1
- PATHS
- /lib
- /usr/local/lib
- /usr/lib
-)
-
-IF (NOT DBUS_LIBRARY)
- MESSAGE (ERROR "did not find DBus library!")
-ENDIF (NOT DBUS_LIBRARY)
-
+
SET(COMMON_API_DBUS_LIBRARIES ${COMMON_API_DBUS_LIBRARY} ${DBUS_LIBRARY})