11 lines
506 B
CMake
11 lines
506 B
CMake
|
# Compile For ARM64
|
||
|
if(NOT (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64_be" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "armv8b" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "armv8l"))
|
||
|
# Use ARM64 Cross-Compiler
|
||
|
set(TARGET "aarch64-linux-gnu")
|
||
|
set(CMAKE_C_COMPILER "${TARGET}-gcc")
|
||
|
set(CMAKE_CXX_COMPILER "${TARGET}-g++")
|
||
|
set(CMAKE_FIND_ROOT_PATH "/usr/${TARGET}" "/usr/lib/${TARGET}")
|
||
|
endif()
|
||
|
set(CMAKE_SYSTEM_NAME "Linux")
|
||
|
set(CMAKE_SYSTEM_PROCESSOR "aarch64")
|