fix Windows processor detection

Thanks to Martin Koller for this.
This commit is contained in:
Rolf Eike Beer 2013-03-06 18:04:53 +01:00
parent add8d22acc
commit 20681c9e05
1 changed files with 1 additions and 1 deletions

View File

@ -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}")