Fix bonjour linkage on non-Windows platforms

This commit is contained in:
Andrew Nelless 2017-02-07 01:35:07 +00:00
parent 7cd4642e92
commit e3f3b7424c
1 changed files with 5 additions and 2 deletions

View File

@ -26,5 +26,8 @@ endif()
qt5_use_modules (synergyx Core Widgets Network)
target_link_libraries (synergyx ${DNSSD_LIB} shared)
if (WIN32)
set_target_properties (synergyx PROPERTIES
LINK_FLAGS "/NODEFAULTLIB:LIBCMT")
endif()