diff options
Diffstat (limited to 'cmake/modules/FindDBus.cmake')
-rw-r--r-- | cmake/modules/FindDBus.cmake | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/cmake/modules/FindDBus.cmake b/cmake/modules/FindDBus.cmake index 872b7bbb..16d20baf 100644 --- a/cmake/modules/FindDBus.cmake +++ b/cmake/modules/FindDBus.cmake @@ -18,21 +18,23 @@ if (NOT WIN32) find_package(PkgConfig) pkg_check_modules(PC_DBUS dbus-1) -endif (NOT WIN32) +endif () find_path(DBUS_INCLUDE_DIR dbus/dbus.h - PATHS ${PC_DBUS_INCLUDE_DIRS} + HINTS + ${PC_DBUS_INCLUDE_DIRS} PATH_SUFFIXES dbus-1.0 ) find_path(DBUS_ARCH_INCLUDE_DIR dbus/dbus-arch-deps.h - PATHS ${PC_DBUS_INCLUDE_DIRS} - HINTS ${CMAKE_LIBRARY_PATH}/dbus-1.0/include - ${CMAKE_SYSTEM_LIBRARY_PATH}/dbus-1.0/include + HINTS + ${PC_DBUS_INCLUDE_DIRS} + ${CMAKE_LIBRARY_PATH}/dbus-1.0/include + ${CMAKE_SYSTEM_LIBRARY_PATH}/dbus-1.0/include ) find_library(DBUS_LIBRARIES NAMES dbus-1 - PATHS ${PC_DBUS_LIBRARY_DIRS} + HINTS ${PC_DBUS_LIBRARY_DIRS} ) include(FindPackageHandleStandardArgs) |