summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-03-04 20:39:50 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-03-04 20:39:50 (GMT)
commit07ee97cace8c1de04d18a0e671fd4f37514f52be (patch)
treef2806cfc52909bcb0eefc4fc86a0d3b72195cbda
parentb4bb074d8b33077093f26cf594bce4912ade1eec (diff)
parentadd8d22acc9417cb144a0b497f4f5ef330bfc680 (diff)
downloadCMake-07ee97cace8c1de04d18a0e671fd4f37514f52be.zip
CMake-07ee97cace8c1de04d18a0e671fd4f37514f52be.tar.gz
CMake-07ee97cace8c1de04d18a0e671fd4f37514f52be.tar.bz2
Merge topic 'Win-HOST_SYSTEM_PROCESSOR'
add8d22 properly detect processor architecture on Windows
-rw-r--r--Modules/CMakeDetermineSystem.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineSystem.cmake b/Modules/CMakeDetermineSystem.cmake
index c7f9c32..20c1541 100644
--- a/Modules/CMakeDetermineSystem.cmake
+++ b/Modules/CMakeDetermineSystem.cmake
@@ -73,7 +73,11 @@ if(CMAKE_HOST_UNIX)
else()
if(CMAKE_HOST_WIN32)
set (CMAKE_HOST_SYSTEM_NAME "Windows")
- set (CMAKE_HOST_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITECTURE}")
+ if (ENV{PROCESSOR_ARCHITEW6432})
+ set (CMAKE_HOST_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITEW6432}")
+ else()
+ set (CMAKE_HOST_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITECTURE}")
+ endif()
endif()
endif()