Make ARCH variable a CACHE variable

This commit is contained in:
Isuru Fernando 2017-07-29 23:30:15 +05:30
parent 7345795e64
commit 5e0f67c666
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ endif ()
# CMAKE_HOST_SYSTEM_PROCESSOR - The name of the CPU CMake is running on.
#
# TODO: CMAKE_SYSTEM_PROCESSOR doesn't seem to be correct - instead get it from the compiler a la c_check
set(ARCH ${CMAKE_SYSTEM_PROCESSOR})
set(ARCH ${CMAKE_SYSTEM_PROCESSOR} CACHE STRING "Target Architecture")
if (${ARCH} STREQUAL "AMD64")
set(ARCH "x86_64")
endif ()