diff --git a/CMakeLists.txt b/CMakeLists.txt index 5c4ba6de..5a2a4eb1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -187,7 +187,7 @@ if (UNIX) message (FATAL_ERROR "Missing header: " ${XKBlib}) endif() - if (NOT HAVE_DNSSD) + if (BARRIER_BUILD_GUI AND NOT HAVE_DNSSD) message (FATAL_ERROR "Missing header: dns_sd.h") endif()