summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-03-08 15:43:49 +0000
committerPierre Ossman <ossman@cendio.se>2011-03-08 15:43:49 +0000
commita783037500e916dfee0d1ed43ffc8c0e1b82a9e7 (patch)
treeeca4be9dbdd9ed16f03ec5f313bdea7addf583e3 /common
parent06084f46a1c3cbd650b25f078276ee9f61418d3b (diff)
downloadtigervnc-a783037500e916dfee0d1ed43ffc8c0e1b82a9e7.tar.gz
tigervnc-a783037500e916dfee0d1ed43ffc8c0e1b82a9e7.zip
Make sure Windows specific code is only included in Windows builds.
Patch by Henrik Andersson. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4334 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common')
-rw-r--r--common/rfb/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/rfb/CMakeLists.txt b/common/rfb/CMakeLists.txt
index 7679437c..d0430496 100644
--- a/common/rfb/CMakeLists.txt
+++ b/common/rfb/CMakeLists.txt
@@ -59,12 +59,15 @@ set(RFB_SOURCES
UpdateTracker.cxx
VNCSConnectionST.cxx
VNCServerST.cxx
- WinPasswdValidator.cxx # Windows specific code
ZRLEEncoder.cxx
ZRLEDecoder.cxx
encodings.cxx
util.cxx)
+if(WIN32)
+ set(RFB_SOURCES ${RFB_SOURCES} WinPasswdValidator.cxx)
+endif(WIN32)
+
set(RFB_LIBRARIES ${JPEG_LIBRARIES} os)
if(GNUTLS_FOUND)