toolchain-stxp70v4.cmake 619 B

123456789101112131415161718192021
  1. include(CMakeForceCompiler)
  2. SET(CMAKE_SYSTEM_NAME STxP70v4)
  3. # The environment variables should be already set
  4. # in order to do proper cross compiling
  5. CMAKE_FORCE_C_COMPILER(stxp70cc GNU)
  6. CMAKE_FORCE_CXX_COMPILER(stxp70c++ GNU)
  7. set (CMAKE_C_FLAGS $ENV{CFLAGS})
  8. set (CMAKE_SHARED_LIBRARY_LINK_C_FLAGS $ENV{LDFLAGS})
  9. set (CMAKE_AR stxp70-ar)
  10. set (CMAKE_RANLIB stxp70-ranlib)
  11. # search for programs in the build host directories
  12. SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  13. # for libraries and headers in the target directories
  14. SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER)
  15. SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER)