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
diff --git a/win/installer/CMakeLists.txt b/win/installer/CMakeLists.txt
index e09242c..ab9c085 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()