commit c6074e188884ca756adfef7b8b7ea0fd1d73b5f8
parent f317782eaf157a31d5b66dfab6544610ba63dd0e
Author: [email protected] <[email protected]>
Date: Mon, 11 Mar 2019 15:51:00 +0000
Remember detected cpu
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -84,7 +84,7 @@ if (CPU_ARCH STREQUAL "detect" AND X86)
)
if (COMPILE_RESULT AND RUN_RESULT EQUAL 0)
message(STATUS DETECTED_CPU = ${RUN_OUT})
- set(CPU_ARCH ${RUN_OUT})
+ set(CPU_ARCH ${RUN_OUT} CACHE STRING "Detected CPU" FORCE)
else()
message(STATUS COMPILE_RESULT = ${COMPILE_RESULT})
message(STATUS RUN_RESULT = ${RUN_RESULT})