toolchain-stxp70.cmake 574 B

1234567891011121314151617181920
  1. include(CMakeForceCompiler)
  2. SET(CMAKE_SYSTEM_NAME STxP70)
  3. # The environment variables should be already set
  4. # in order to do proper cross compiling
  5. set (CMAKE_FORCE_C_COMPILER $ENV{CC})
  6. set (CMAKE_C_FLAGS $ENV{CFLAGS})
  7. set (CMAKE_SHARED_LIBRARY_LINK_C_FLAGS $ENV{LDFLAGS})
  8. set (CMAKE_AR $ENV{AR})
  9. set (CMAKE_RANLIB $ENV{RANLIB})
  10. # search for programs in the build host directories
  11. SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  12. # for libraries and headers in the target directories
  13. SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  14. SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)