Skip to content

Instantly share code, notes, and snippets.

@cyrusbehr
Created October 9, 2020 22:48
Show Gist options
  • Select an option

  • Save cyrusbehr/c23765a25d743dda8bcf2ca9353d312d to your computer and use it in GitHub Desktop.

Select an option

Save cyrusbehr/c23765a25d743dda8bcf2ca9353d312d to your computer and use it in GitHub Desktop.
Root Cmake
# Build options for cross compiling
option(BUILD_ARM32 "Cross compile the SDK for arm32" OFF)
option(BUILD_ARM64 "Cross compile the SDK for arm64" OFF)
# Choose the appropriate toolchain file
if (BUILD_ARM32)
SET (CMAKE_TOOLCHAIN_FILE tools/toolchain-arm32.cmake)
elseif(BUILD_ARM64)
SET (CMAKE_TOOLCHAIN_FILE tools/toolchain-aarch64.cmake)
endif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment