Rename ARM toolchain flag to aarch32

This commit is contained in:
Claudia Tu
2017-12-07 16:58:29 +11:00
parent 9b009d9759
commit 0602690f28

View File

@@ -21,8 +21,11 @@ set(CMAKE_SYSROOT "${CMAKE_BINARY_DIR}")
set(CMAKE_STAGING_PREFIX "${CMAKE_BINARY_DIR}/staging")
if("${CROSS_COMPILER_PREFIX}" STREQUAL "")
if(ARM)
if(AARCH32 OR ARM)
set(CROSS_COMPILER_PREFIX "arm-linux-gnueabi-" CACHE INTERNAL "")
if(ARM)
message("ARM flag is deprecated, please use AARCH32")
endif()
elseif(AARCH64)
set(CROSS_COMPILER_PREFIX "aarch64-linux-gnu-" CACHE INTERNAL "")
endif()