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

This commit is contained in:
Shuduo Sang 2021-03-03 01:47:51 +08:00
parent 0e98eb8ecd
commit 959220bd83
1 changed files with 2 additions and 2 deletions

View File

@ -105,8 +105,8 @@ ELSE ()
MESSAGE(STATUS "The current platform is " ${CMAKE_SYSTEM_PROCESSOR}) MESSAGE(STATUS "The current platform is " ${CMAKE_SYSTEM_PROCESSOR})
IF (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)") IF (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)")
MESSAGE(STATUS "The current platform is x86") MESSAGE(STATUS "The current platform is x86")
ELSE () ELSEIF (CMAKE_SYSTEM_PROCESSOR MATCHES "armv7l")
MESSAGE(STATUS "The current os is NOT x86") SET(CPUTYPE "aarch32")
ENDIF () ENDIF ()
ENDIF () ENDIF ()