Merge pull request #473 from RealKelsar/master

make non-gui variants build without avahi
This commit is contained in:
Adrian Lucrèce Céleste 2019-10-18 19:38:25 -04:00 committed by GitHub
commit 07a1c31fab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ if (UNIX)
link_directories("/usr/X11R6/lib")
endif()
if (${PKG_CONFIG_FOUND})
if (BARRIER_BUILD_GUI AND ${PKG_CONFIG_FOUND})
pkg_check_modules (AVAHI_COMPAT REQUIRED avahi-compat-libdns_sd)
include_directories (BEFORE SYSTEM ${AVAHI_COMPAT_INCLUDE_DIRS})
set (CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES};${AVAHI_COMPAT_INCLUDE_DIRS}")