]> source.dussan.org Git - tigervnc.git/commitdiff
Added additional check to only link against ws2_32 library
authorHenrik Andersson <henrik.andersson@cendio.com>
Wed, 9 Mar 2011 07:46:39 +0000 (07:46 +0000)
committerHenrik Andersson <henrik.andersson@cendio.com>
Wed, 9 Mar 2011 07:46:39 +0000 (07:46 +0000)
on Windows build.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4344 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rdr/CMakeLists.txt

index 78033e2dc14635de2027720023140fdb57fd5fcd..ac4313c9fd21662d34933c807fbd3a7c7bcb668c 100644 (file)
@@ -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})