diff options
author | Pierre Ossman <ossman@cendio.se> | 2011-03-08 15:43:49 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2011-03-08 15:43:49 +0000 |
commit | a783037500e916dfee0d1ed43ffc8c0e1b82a9e7 (patch) | |
tree | eca4be9dbdd9ed16f03ec5f313bdea7addf583e3 /common | |
parent | 06084f46a1c3cbd650b25f078276ee9f61418d3b (diff) | |
download | tigervnc-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.txt | 5 |
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) |