--- synergy-1.7.5-stable/CMakeLists.txt.orig 2016-01-15 10:37:58.027808900 +0100 +++ synergy-1.7.5-stable/CMakeLists.txt 2016-01-15 10:41:10.509055100 +0100 @@ -77,9 +77,11 @@ # warnings as errors: # we have a problem with people checking in code with warnings. - # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-unused-local-typedef") + if (NOT CYGWIN) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-unused-local-typedef") + endif () - if (NOT APPLE) + if (NOT (APPLE OR CYGWIN)) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") endif() --- synergy-1.7.5-stable/ext/toolchain/commands1.py.orig 2015-11-19 20:51:14.000000000 +0100 +++ synergy-1.7.5-stable/ext/toolchain/commands1.py 2016-01-15 10:23:25.735583700 +0100 @@ -690,7 +690,7 @@ if err != 0: raise Exception(gui_make_cmd + ' failed with error: ' + str(err)) - elif sys.platform in ['linux2', 'sunos5', 'freebsd7', 'darwin']: + elif sys.platform in ['linux2', 'sunos5', 'freebsd7', 'darwin', 'cygwin']: gui_make_cmd = self.make_cmd + " -w" + args print 'Make GUI command: ' + gui_make_cmd @@ -1657,7 +1657,7 @@ def get_generators(self): if sys.platform == 'win32': return self.win32_generators - elif sys.platform in ['linux2', 'sunos5', 'freebsd7', 'aix5']: + elif sys.platform in ['linux2', 'sunos5', 'freebsd7', 'aix5', 'cygwin']: return self.unix_generators elif sys.platform == 'darwin': return self.darwin_generators