From e3f3b7424cc8d27606ef7a832c084511aff8cf61 Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Tue, 7 Feb 2017 01:35:07 +0000 Subject: [PATCH] Fix bonjour linkage on non-Windows platforms --- src/gui/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index e8443181..a249b544 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -26,5 +26,8 @@ endif() qt5_use_modules (synergyx Core Widgets Network) target_link_libraries (synergyx ${DNSSD_LIB} shared) -set_target_properties (synergyx PROPERTIES - LINK_FLAGS "/NODEFAULTLIB:LIBCMT") + +if (WIN32) + set_target_properties (synergyx PROPERTIES + LINK_FLAGS "/NODEFAULTLIB:LIBCMT") +endif()