Skip to content

Instantly share code, notes, and snippets.

@nhtranngoc
Created June 14, 2020 00:27
Show Gist options
  • Save nhtranngoc/aacbf3f3872134e1753b54194bfcfd63 to your computer and use it in GitHub Desktop.
Save nhtranngoc/aacbf3f3872134e1753b54194bfcfd63 to your computer and use it in GitHub Desktop.
Yart - Cross compiling arm toolchain file
set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR arm)
set(CMAKE_CROSSCOMPILING TRUE)
set(CMAKE_C_COMPILER arm-none-eabi-gcc)
set(CMAKE_CXX_COMPILER arm-none-eabi-g++)
set(OBJCOPY arm-none-eabi-objcopy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment