Fix ARM Toolchain On Some Devices
This commit is contained in:
parent
28a6d59c2d
commit
1daede7dba
@ -2,7 +2,7 @@
|
|||||||
if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "aarch64_be" OR CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "aarch64" OR CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "armv8b" OR CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "armv8l")
|
if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "aarch64_be" OR CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "aarch64" OR CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "armv8b" OR CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "armv8l")
|
||||||
# Force 32-Bit Compile
|
# Force 32-Bit Compile
|
||||||
add_compile_options("-m32")
|
add_compile_options("-m32")
|
||||||
elseif(NOT CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm")
|
elseif((NOT CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm") AND (NOT CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "armv7l"))
|
||||||
# Use ARM Cross-Compiler
|
# Use ARM Cross-Compiler
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/base-toolchain.cmake")
|
include("${CMAKE_CURRENT_LIST_DIR}/base-toolchain.cmake")
|
||||||
setup_toolchain("arm-linux-gnueabihf")
|
setup_toolchain("arm-linux-gnueabihf")
|
||||||
|
Loading…
Reference in New Issue
Block a user