numato-mimasv2: works fine with 6.6.x/6.9.x
[openadk.git] / scripts / toolchain.cmake.in
blobdc9c1830d507e3b4f676139c50e88c4873d70cce
1 set(CMAKE_SYSTEM_NAME Linux)
2 set(CMAKE_SYSTEM_PROCESSOR @@TARGET_ARCH@@)
3 set(CMAKE_C_COMPILER @@TARGET_CC@@)
4 set(CMAKE_CXX_COMPILER @@TARGET_CXX@@)
5 set(CMAKE_C_FLAGS "@@TARGET_CFLAGS@@" CACHE STRING "OpenADK CFLAGS" FORCE)
6 set(CMAKE_CXX_FLAGS "@@TARGET_CXXFLAGS@@" CACHE STRING "OpenADK CXXFLAGS" FORCE)
7 set(CMAKE_INSTALL_SO_NO_EXE 0)
8 list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
9 set(CMAKE_PROGRAM_PATH "@@STAGING_HOST_DIR@@/usr/bin")
10 set(CMAKE_SYSROOT "@@STAGING_TARGET_DIR@@")
11 set(CMAKE_FIND_ROOT_PATH "@@STAGING_TARGET_DIR@@")
12 set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
13 set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
14 set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
15 set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
16 set(ENV{PKG_CONFIG_SYSROOT_DIR} "@@STAGING_TARGET_DIR@@")
17 set(ENV{PKG_CONFIG_LIBDIR} "@@STAGING_TARGET_DIR@@/usr/lib/pkgconfig:@@STAGING_TARGET_DIR@@/usr/share/pkgconfig")