From f76d166df3723e13e738ad87283b4c520d1104cd Mon Sep 17 00:00:00 2001 From: Alexey Sheplyakov Date: Fri, 11 Jun 2021 21:03:00 +0000 Subject: [PATCH] Added CMake toolchain file cmake -DCMAKE_TOOLCHAIN_FILE=path/to/aarch64-linux-gnu.cmake ... --- aarch64-linux-gnu.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 aarch64-linux-gnu.cmake diff --git a/aarch64-linux-gnu.cmake b/aarch64-linux-gnu.cmake new file mode 100644 index 0000000..4295154 --- /dev/null +++ b/aarch64-linux-gnu.cmake @@ -0,0 +1,11 @@ +set(CMAKE_SYSTEM_NAME Linux) +set(CMAKE_SYSTEM_PROCESSOR arm64) + +set(CMAKE_SYSROOT /usr/lib/aarch64-linux-gnu/sys-root) +set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc) +set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++) + +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)