Toolchain-gcc32.cmake 599 B

12345678910111213141516171819
  1. # the name of the target operating system
  2. set(CMAKE_SYSTEM_NAME Linux)
  3. # which compilers to use for C and C++
  4. set(CMAKE_C_COMPILER gcc)
  5. set(CMAKE_C_FLAGS -m32)
  6. set(CMAKE_CXX_COMPILER g++)
  7. set(CMAKE_CXX_FLAGS -m32)
  8. # here is the target environment located
  9. set(CMAKE_FIND_ROOT_PATH /usr/i486-linux-gnu )
  10. # adjust the default behaviour of the FIND_XXX() commands:
  11. # search headers and libraries in the target environment, search
  12. # programs in the host environment
  13. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  14. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  15. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)