toolchain.cmake 543 B

123456789101112131415161718
  1. set(CMAKE_SYSTEM_NAME Linux)
  2. set(CMAKE_SYSTEM_PROCESSOR x86_64)
  3. set(CMAKE_SYSTEM_VERSION 4.18.20)
  4. set(triple x86_64-ffbuild-linux-gnu)
  5. set(CMAKE_C_COMPILER ${triple}-gcc)
  6. set(CMAKE_CXX_COMPILER ${triple}-g++)
  7. set(CMAKE_RANLIB ${triple}-gcc-ranlib)
  8. set(CMAKE_AR ${triple}-gcc-ar)
  9. set(CMAKE_SYSROOT /opt/ct-ng/${triple}/sysroot)
  10. set(CMAKE_FIND_ROOT_PATH /opt/ct-ng /opt/ct-ng/${triple}/sysroot /opt/ffbuild)
  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)