Oops.  The 64BIT variable is a carry-over from VirtualGL.  TigerVNC's build system doesn't define it.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4613 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4a95961..d30411c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -115,7 +115,7 @@
   if(BUILD_STATIC)
     # For some reason, simply passing ${CMAKE_CXX_FLAGS} to the compiler in
     # execute_process() doesn't work.  Grrr...
-    if(64BIT)
+    if(CMAKE_SIZEOF_VOID_P MATCHES 8)
       execute_process(COMMAND ${CMAKE_CXX_COMPILER} -m64
         --print-file-name=libstdc++.a OUTPUT_VARIABLE LIBSTDCPLUSPLUS
         RESULT_VARIABLE RESULT)