提交 0e98eb8e 编写于 作者: sangshuduo's avatar sangshuduo

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

上级 ecf5daae
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册