(Windows) Changed CMAKE_HOST_SYSTEM_PROCESSOR to CMAKE_SYSTEM_PROCESSOR.

This commit is contained in:
Leon Styhre 2023-02-18 12:44:30 +01:00
parent 270351b033
commit 70e8b9b750

View file

@ -273,10 +273,10 @@ endif()
set(CPACK_PACKAGE_VENDOR "Leon Styhre")
# Use the shorter x64 descriptor for the x86_64/AMD64 architecture.
if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES x86_64 OR CMAKE_HOST_SYSTEM_PROCESSOR MATCHES AMD64)
if(CMAKE_SYSTEM_PROCESSOR MATCHES x86_64 OR CMAKE_SYSTEM_PROCESSOR MATCHES AMD64)
set(CPU_ARCHITECTURE x64)
else()
set(CPU_ARCHITECTURE ${CMAKE_HOST_SYSTEM_PROCESSOR})
set(CPU_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})
endif()
# Settings per operating system and generator type.