summaryrefslogtreecommitdiff
path: root/Modules/CMakeDetermineSystem.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2013-03-06 18:04:53 +0100
committerRolf Eike Beer <eike@sf-mail.de>2013-03-06 18:04:53 +0100
commit20681c9e0573fcc7f1a9870c54a4edd5fde14568 (patch)
tree1579739975980fe5eb9d2669bbadeb8e7e249f85 /Modules/CMakeDetermineSystem.cmake
parentadd8d22acc9417cb144a0b497f4f5ef330bfc680 (diff)
downloadcmake-20681c9e0573fcc7f1a9870c54a4edd5fde14568.tar.gz
fix Windows processor detection
Thanks to Martin Koller for this.
Diffstat (limited to 'Modules/CMakeDetermineSystem.cmake')
-rw-r--r--Modules/CMakeDetermineSystem.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineSystem.cmake b/Modules/CMakeDetermineSystem.cmake
index 20c1541baf..3a95d2a6f1 100644
--- a/Modules/CMakeDetermineSystem.cmake
+++ b/Modules/CMakeDetermineSystem.cmake
@@ -73,7 +73,7 @@ if(CMAKE_HOST_UNIX)
else()
if(CMAKE_HOST_WIN32)
set (CMAKE_HOST_SYSTEM_NAME "Windows")
- if (ENV{PROCESSOR_ARCHITEW6432})
+ if (DEFINED ENV{PROCESSOR_ARCHITEW6432})
set (CMAKE_HOST_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITEW6432}")
else()
set (CMAKE_HOST_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITECTURE}")