[TD-3148] <feature>: make build system detect host arch.

This commit is contained in:
Shuduo Sang 2021-03-03 01:36:28 +08:00
parent ecf5daae66
commit 0e98eb8ecd
1 changed files with 8 additions and 0 deletions

View File

@ -101,6 +101,14 @@ ELSEIF (${CPUTYPE} MATCHES "x86")
MESSAGE(STATUS "input cpuType: x86")
ELSE ()
MESSAGE(STATUS "input cpuType unknown " ${CPUTYPE})
MESSAGE(STATUS "The current platform is " ${CMAKE_SYSTEM_PROCESSOR})
IF (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)")
MESSAGE(STATUS "The current platform is x86")
ELSE ()
MESSAGE(STATUS "The current os is NOT x86")
ENDIF ()
ENDIF ()
# cmake -DOSTYPE=Ningsi