projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7345795
)
Make ARCH variable a CACHE variable
author
Isuru Fernando
<isuruf@gmail.com>
Sat, 29 Jul 2017 18:00:15 +0000
(23:30 +0530)
committer
Isuru Fernando
<isuruf@gmail.com>
Sat, 29 Jul 2017 18:00:15 +0000
(23:30 +0530)
cmake/c_check.cmake
patch
|
blob
|
history
diff --git
a/cmake/c_check.cmake
b/cmake/c_check.cmake
index
a0784f0
..
776850e
100644
(file)
--- a/
cmake/c_check.cmake
+++ b/
cmake/c_check.cmake
@@
-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 ()