minecraft-pi-docker/cmake/base-toolchain.cmake

10 lines
303 B
CMake
Raw Normal View History

2021-09-14 22:10:32 +00:00
# Setup Toolchain
macro(setup_toolchain target)
# Use ARM Cross-Compiler
set(CMAKE_C_COMPILER "${target}-gcc")
set(CMAKE_CXX_COMPILER "${target}-g++")
2021-09-14 22:10:32 +00:00
set(CMAKE_FIND_ROOT_PATH "/usr/${target}" "/usr/lib/${target}")
# Extra
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
endmacro()