Skip to content

Instantly share code, notes, and snippets.

@cyrusbehr
Created May 19, 2021 20:03
Show Gist options
  • Save cyrusbehr/a9dde52f33d1e7325942fc1c90a78189 to your computer and use it in GitHub Desktop.
Save cyrusbehr/a9dde52f33d1e7325942fc1c90a78189 to your computer and use it in GitHub Desktop.
Toolchain file
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR "aarch64")
set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++)
set(CMAKE_CUDA_COMPILER nvcc)
set(CMAKE_CUDA_HOST_COMPILER aarch64-linux-gnu-gcc)
set(CMAKE_FIND_ROOT_PATH "/usr/aarch64-linux-gnu")
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment