SYNERGY-317 Configure requires dns_sd.h for enteprise (#6819)

This commit is contained in:
SerhiiGadzhilov 2020-10-29 11:26:27 +03:00 committed by GitHub
parent 63279a1d3a
commit 26f2f2c283
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

View file

@ -248,13 +248,15 @@ if (UNIX)
list (APPEND libs Xi)
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)
if (NOT SYNERGY_ENTERPRISE)
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()
endif()
endif()
# For config.h, set some static values; it may be a good idea to make
# these values dynamic for non-standard UNIX compilers.

View file

@ -11,6 +11,7 @@ Bug fixes:
- #6804 Synergy loses edition when creating a System scope config
- #6660 + #6582 Add missing XAtom for utf-8 handling with Xorg
- #6814 The system asks to save twice.
- #6817 Configure requires dns_sd.h for enterprise version
Enhancements:
- #6750 Integrate SonarCloud for static analysis and test coverage