getting_started:arm_toolchain
Differences
This shows you the differences between two versions of the page.
getting_started:arm_toolchain [2017/11/21 08:07] – created graf | getting_started:arm_toolchain [2021/03/25 19:27] (current) – removed ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Toolchain File for ARM Platform ====== | ||
- | The following is an example of a toolchain file for an ARM platform and the gcc version 4.9. | ||
- | < | ||
- | set(CMAKE_SYSTEM_NAME Linux) | ||
- | set(TOOLCHAIN_PREFIX arm-linux-gnueabihf) | ||
- | set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc-4.9) | ||
- | set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++-4.9) | ||
- | |||
- | set(CMAKE_FIND_ROOT_PATH / | ||
- | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
- | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
- | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) | ||
- | </ |