summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-03-08 12:18:13 +0000
committerPierre Ossman <ossman@cendio.se>2011-03-08 12:18:13 +0000
commit69314c772112b212549190ed6d53c48d41f4a703 (patch)
treeb7cb3819df2cada1d3ed666159a371e831e38666 /win
parent27581fc1919c5078a5cd3afe0ac4841bd2990877 (diff)
downloadtigervnc-69314c772112b212549190ed6d53c48d41f4a703.tar.gz
tigervnc-69314c772112b212549190ed6d53c48d41f4a703.zip
Complete misunderstanding on my part. CMAKE_CL_64 indicates a _Microsoft_
compiler and is not a generic test for 64-bit. Start looking at the size of void* instead. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4325 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win')
-rw-r--r--win/installer/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/installer/CMakeLists.txt b/win/installer/CMakeLists.txt
index e09242c7..ab9c0859 100644
--- a/win/installer/CMakeLists.txt
+++ b/win/installer/CMakeLists.txt
@@ -1,4 +1,5 @@
-if(CMAKE_CL_64)
+# Detect a 64-bit build and give that installer a different name
+if(CMAKE_SIZEOF_VOID_P MATCHES 8)
set(INST_NAME ${CMAKE_PROJECT_NAME}64-${VERSION})
set(INST_DEFS -DWIN64)
else()