1
0

toolchain.cmake.in 775 B

123456789101112131415
  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_SYSTEM_NAME Linux)
  6. set(CMAKE_C_FLAGS "@@TARGET_CFLAGS@@" CACHE STRING "OpenADK CFLAGS" FORCE)
  7. set(CMAKE_CXX_FLAGS "@@TARGET_CXXFLAGS@@" CACHE STRING "OpenADK CXXFLAGS" FORCE)
  8. set(CMAKE_INSTALL_SO_NO_EXE 0)
  9. set(CMAKE_PROGRAM_PATH "@@STAGING_HOST_DIR@@/usr/bin")
  10. set(CMAKE_FIND_ROOT_PATH "@@STAGING_TARGET_DIR@@")
  11. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  12. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  13. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
  14. set(ENV{PKG_CONFIG_SYSROOT_DIR} "@@STAGING_TARGET_DIR@@")
  15. set(ENV{PKG_CONFIG_LIBDIR} "@@STAGING_TARGET_DIR@@/usr/lib/pkgconfig:@@STAGING_TARGET_DIR@@/usr/share/pkgconfig")