summaryrefslogtreecommitdiff
path: root/indra/cmake/DBusGlib.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/DBusGlib.cmake')
-rw-r--r--indra/cmake/DBusGlib.cmake29
1 files changed, 11 insertions, 18 deletions
diff --git a/indra/cmake/DBusGlib.cmake b/indra/cmake/DBusGlib.cmake
index 5e46b6711a..7c95bf8c20 100644
--- a/indra/cmake/DBusGlib.cmake
+++ b/indra/cmake/DBusGlib.cmake
@@ -1,24 +1,17 @@
# -*- cmake -*-
include(Prebuilt)
-if (USESYSTEMLIBS)
- include(FindPkgConfig)
-
- pkg_check_modules(DBUSGLIB REQUIRED dbus-glib-1)
-
-elseif (LINUX)
- use_prebuilt_binary(dbus_glib)
- set(DBUSGLIB_FOUND ON FORCE BOOL)
- set(DBUSGLIB_INCLUDE_DIRS
- ${LIBS_PREBUILT_DIR}/include/dbus
- )
- # We don't need to explicitly link against dbus-glib itself, because
- # the viewer probes for the system's copy at runtime.
- set(DBUSGLIB_LIBRARIES
- gobject-2.0
- glib-2.0
- )
-endif (USESYSTEMLIBS)
+use_prebuilt_binary(dbus_glib)
+set(DBUSGLIB_FOUND ON FORCE BOOL)
+set(DBUSGLIB_INCLUDE_DIRS
+ ${LIBS_PREBUILT_DIR}/include/dbus
+ )
+# We don't need to explicitly link against dbus-glib itself, because
+# the viewer probes for the system's copy at runtime.
+set(DBUSGLIB_LIBRARIES
+ gobject-2.0
+ glib-2.0
+ )
if (DBUSGLIB_FOUND)
set(DBUSGLIB ON CACHE BOOL "Build with dbus-glib message bus support.")