You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

host.gcc.toolchain.cmake 526 B

1234567891011121314
  1. # set cross-compiled system type, it's better not use the type which cmake cannot recognized.
  2. SET ( CMAKE_SYSTEM_NAME Linux )
  3. SET ( CMAKE_SYSTEM_PROCESSOR x86 )
  4. # if gcc/g++ was installed:
  5. SET ( CMAKE_C_COMPILER "gcc" )
  6. SET ( CMAKE_CXX_COMPILER "g++" )
  7. # set searching rules
  8. SET ( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
  9. SET ( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
  10. SET ( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
  11. # set ${CMAKE_C_FLAGS} and ${CMAKE_CXX_FLAGS}flag
  12. SET ( CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}" )