aboutsummaryrefslogtreecommitdiffstats
path: root/common/rdr
diff options
context:
space:
mode:
authorHenrik Andersson <henrik.andersson@cendio.com>2011-03-09 07:46:39 +0000
committerHenrik Andersson <henrik.andersson@cendio.com>2011-03-09 07:46:39 +0000
commitdb143c99055594b025127c2998021edf5d500b4b (patch)
treeff3d38168b52ce864dd8c7aec78ef20740eff808 /common/rdr
parent2bd88b6e8f23efdd43c9f72dd96746a016c6a52e (diff)
downloadtigervnc-db143c99055594b025127c2998021edf5d500b4b.tar.gz
tigervnc-db143c99055594b025127c2998021edf5d500b4b.zip
Added additional check to only link against ws2_32 library
on Windows build. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4344 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rdr')
-rw-r--r--common/rdr/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/rdr/CMakeLists.txt b/common/rdr/CMakeLists.txt
index 78033e2d..ac4313c9 100644
--- a/common/rdr/CMakeLists.txt
+++ b/common/rdr/CMakeLists.txt
@@ -16,7 +16,10 @@ add_library(rdr STATIC
set(RDR_LIBRARIES ${ZLIB_LIBRARIES} os)
if(GNUTLS_FOUND)
- set(RDR_LIBRARIES ${RDR_LIBRARIES} ${GNUTLS_LIBRARIES} ws2_32)
+ set(RDR_LIBRARIES ${RDR_LIBRARIES} ${GNUTLS_LIBRARIES})
+ if(WIN32)
+ set(RDR_LIBRARIES ${RDR_LIBRARIES} ws2_32)
+ endif()
endif()
target_link_libraries(rdr ${RDR_LIBRARIES})