toolchain_i686-w64-mingw32-posix.cmake 761 B

12345678910111213141516171819
  1. # name of the target operating system
  2. SET(CMAKE_SYSTEM_NAME Windows)
  3. # which compilers to use for C and C++
  4. # *-posix is Ubuntu's naming for the MinGW variant that comes with support
  5. # for pthreads / std::thread (required by MT)
  6. SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc-posix)
  7. SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++-posix)
  8. SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
  9. # here is the target environment located
  10. SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32)
  11. # adjust the default behaviour of the FIND_XXX() commands:
  12. # search headers and libraries in the target environment, search
  13. # programs in the host environment
  14. set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  15. set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  16. set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)