Toolchain-gcc-m32.cmake 550 B

1234567891011121314151617
  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 -m32)
  5. set(CMAKE_CXX_COMPILER g++ -m32)
  6. # here is the target environment located
  7. set(CMAKE_FIND_ROOT_PATH /usr/lib32 )
  8. # adjust the default behaviour of the FIND_XXX() commands:
  9. # search headers and libraries in the target environment, search
  10. # programs in the host environment
  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)