#
############################################################################
-FIND_PATH(DBUS_INCLUDE_DIR dbus/dbus.h
-/usr/include/dbus-1.0
-)
+FIND_PATH(DBUS_INCLUDE_DIR dbus/dbus.h
+ PATHS "/usr/include/dbus-1.0")
FIND_PATH(DBUS_ARCH_INCLUDE_DIR dbus/dbus-arch-deps.h
-/usr/lib/dbus-1.0/include
+/usr/lib${LIB_SUFFIX}/dbus-1.0/include
+/usr/lib${LIB_SUFFIX}/*/dbus-1.0/include
)
FIND_LIBRARY(DBUS_LIBRARY
NAMES dbus-1
-PATHS /lib
+PATHS "/usr/lib"
)
SET( DBUS_FOUND "NO" )
IF(DBUS_LIBRARY)
SET( DBUS_FOUND "YES" )
message(STATUS "Found DBUS libs: ${DBUS_LIBRARY}")
- message(STATUS "Found DBUS includes: ${DBUS_INCLUDE_DIR}")
- message(STATUS "Found DBUS arch dependent includes: ${DBUS_ARCH_INCLUDE_DIR}")
+ message(STATUS "Found DBUS include: ${DBUS_INCLUDE_DIR}")
+ message(STATUS "Found DBUS arch dependent include: ${DBUS_ARCH_INCLUDE_DIR}")
ENDIF(DBUS_LIBRARY)
MARK_AS_ADVANCED(
DBUS_ARCH_INCLUDE_DIR
DBUS_LIBRARY
)
+