4f2fe5ce92
Closes #14707. Signed-off-by: Enno Boland <gottox@voidlinux.eu>
22 lines
966 B
Diff
22 lines
966 B
Diff
--- masterdir/builddir/barrier-2.1.1/CMakeLists.txt 2018-05-16 04:48:18.000000000 +0200
|
|
+++ CMakeLists.txt 2018-05-25 18:57:40.584542261 +0200
|
|
@@ -63,6 +63,7 @@
|
|
include (CheckIncludeFileCXX)
|
|
include (CheckSymbolExists)
|
|
include (CheckCSourceCompiles)
|
|
+ include (FindPkgConfig)
|
|
|
|
check_include_file_cxx (istream HAVE_ISTREAM)
|
|
check_include_file_cxx (ostream HAVE_OSTREAM)
|
|
@@ -162,6 +163,11 @@
|
|
include_directories("/usr/local/include" "/usr/local/include/avahi-compat-libdns_sd")
|
|
link_directories("/usr/local/lib")
|
|
endif()
|
|
+ if (${PKG_CONFIG_FOUND})
|
|
+ pkg_check_modules (LIBDNS_SD REQUIRED avahi-compat-libdns_sd)
|
|
+ include_directories (BEFORE SYSTEM ${LIBDNS_SD_INCLUDE_DIRS})
|
|
+ set (CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES};${LIBDNS_SD_INCLUDE_DIRS}")
|
|
+ endif ()
|
|
|
|
set (XKBlib "X11/Xlib.h;X11/XKBlib.h")
|
|
set (CMAKE_EXTRA_INCLUDE_FILES "${XKBlib};X11/extensions/Xrandr.h")
|