cmake: check for dns_sd header file

This commit is contained in:
Simon Désaulniers 2020-03-17 13:35:58 -04:00
parent b2173efbae
commit 0b3068b534

View file

@ -232,6 +232,12 @@ if (UNIX)
list (APPEND libs Xi) list (APPEND libs Xi)
endif() endif()
set (DnsSdlib "dns_sd.h")
set (CMAKE_EXTRA_INCLUDE_FILES "${CMAKE_EXTRA_INCLUDE_FILES};${DnsSdlib}")
check_include_files ("${DnsSdlib}" HAVE_DNS_SD)
if (NOT HAVE_DNS_SD)
message (FATAL_ERROR "Missing header: " ${DnsSdlib})
endif()
endif() endif()
# For config.h, set some static values; it may be a good idea to make # For config.h, set some static values; it may be a good idea to make