Merge topic 'Win-HOST_SYSTEM_PROCESSOR'

add8d22 properly detect processor architecture on Windows
This commit is contained in:
Brad King 2013-03-04 15:39:50 -05:00 committed by CMake Topic Stage
commit 07ee97cace
1 changed files with 5 additions and 1 deletions

View File

@ -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()