Merge topic 'Win-HOST_SYSTEM_PROCESSOR'
20681c9
fix Windows processor detection
This commit is contained in:
commit
e58117b2ba
|
@ -73,7 +73,7 @@ if(CMAKE_HOST_UNIX)
|
||||||
else()
|
else()
|
||||||
if(CMAKE_HOST_WIN32)
|
if(CMAKE_HOST_WIN32)
|
||||||
set (CMAKE_HOST_SYSTEM_NAME "Windows")
|
set (CMAKE_HOST_SYSTEM_NAME "Windows")
|
||||||
if (ENV{PROCESSOR_ARCHITEW6432})
|
if (DEFINED ENV{PROCESSOR_ARCHITEW6432})
|
||||||
set (CMAKE_HOST_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITEW6432}")
|
set (CMAKE_HOST_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITEW6432}")
|
||||||
else()
|
else()
|
||||||
set (CMAKE_HOST_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITECTURE}")
|
set (CMAKE_HOST_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITECTURE}")
|
||||||
|
|
Loading…
Reference in New Issue