Merge topic 'Win-HOST_SYSTEM_PROCESSOR'
add8d22
properly detect processor architecture on Windows
This commit is contained in:
commit
07ee97cace
|
@ -73,9 +73,13 @@ 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})
|
||||||
|
set (CMAKE_HOST_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITEW6432}")
|
||||||
|
else()
|
||||||
set (CMAKE_HOST_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITECTURE}")
|
set (CMAKE_HOST_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITECTURE}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# if a toolchain file is used, the user wants to cross compile.
|
# if a toolchain file is used, the user wants to cross compile.
|
||||||
# in this case read the toolchain file and keep the CMAKE_HOST_SYSTEM_*
|
# in this case read the toolchain file and keep the CMAKE_HOST_SYSTEM_*
|
||||||
|
|
Loading…
Reference in New Issue