xref: /aosp_15_r20/external/libxaac/cmake/toolchains/aarch64_toolchain.cmake (revision 15dc779a375ca8b5125643b829a8aa4b70d7f451)
1SET(CMAKE_SYSTEM_NAME Linux)
2SET(CMAKE_SYSTEM_PROCESSOR aarch64)
3
4# Modify these variables with paths to appropriate compilers that can produce
5# armv8 targets
6
7# Specify the cross compiler
8SET(CMAKE_C_COMPILER aarch64-linux-gnu-gcc)
9SET(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++)
10
11# Where is the target environment
12SET(CMAKE_FIND_ROOT_PATH  aarch64-linux-gnu-gnueabihf)
13
14# Search for programs in the build host directories
15SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
16
17# For libraries and headers in the target directories
18SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
19SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
20