Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Masterkatze/074b1d58c6b5c7dd86eca869f4809707 to your computer and use it in GitHub Desktop.
Save Masterkatze/074b1d58c6b5c7dd86eca869f4809707 to your computer and use it in GitHub Desktop.
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR aarch64)
set(TOOLS /opt/toolchains/aarch64-rpi3-linux-gnu)
set(CMAKE_C_COMPILER ${TOOLS}/bin/aarch64-rpi3-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER ${TOOLS}/bin/aarch64-rpi3-linux-gnu-g++)
set(CMAKE_SYSROOT ${TOOLS}/aarch64-rpi3-linux-gnu/sysroot)
set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})
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