1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-10 13:47:11 +01:00
build/util/cmake.sh
David Oberhollenzer dbbb1889f4 Initial commit
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-01-29 10:17:30 +01:00

18 lines
493 B
Bash

gen_cmake_toolchain_file() {
cat > "$CMAKETCFILE" << _EOF
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSROOT ${TCDIR}/${TARGET})
set(CMAKE_C_COMPILER ${TCDIR}/bin/${TARGET}-gcc)
set(CMAKE_C_COMPILER_TARGET ${TARGET})
set(CMAKE_CXX_COMPILER ${TCDIR}/bin/${TARGET}-g++)
set(CMAKE_CXX_COMPILER_TARGET ${TARGET})
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)
_EOF
}