From bb73b1722aadf1482e8aeec347a11be564aa8e70 Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Wed, 8 Mar 2017 18:20:18 +0000 Subject: [PATCH] Link legacy GUI to Avahi on Linux --- src/gui/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index c1755ae8..b74ff11a 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -21,16 +21,18 @@ add_executable (synergy WIN32 ) include_directories (../lib/shared ./src) +target_link_libraries (synergy shared) if (WIN32) include_directories ($ENV{BONJOUR_SDK_HOME}/Include) find_library (DNSSD_LIB dnssd.lib HINTS ENV BONJOUR_SDK_HOME PATH_SUFFIXES "Lib/x64") +elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux") + target_link_libraries (synergy dns_sd) endif() qt5_use_modules (synergy Core Widgets Network) -target_link_libraries (synergy shared) target_compile_definitions (synergy PRIVATE -DVERSION_STAGE="${VERSION_STAGE}") target_compile_definitions (synergy PRIVATE -DVERSION_REVISION="${SYNERGY_GIT_COMMIT}")