cmake-toolchain-mingw64-i686.cmake 539 B

12345678910111213141516171819
  1. set(CMAKE_SYSTEM_NAME Windows)
  2. set(CMAKE_SYSTEM_PROCESSOR x86)
  3. find_program(CMAKE_C_COMPILER NAMES i686-w64-mingw32-gcc)
  4. find_program(CMAKE_CXX_COMPILER NAMES i686-w64-mingw32-g++)
  5. find_program(CMAKE_RC_COMPILER NAMES i686-w64-mingw32-windres windres)
  6. if(NOT CMAKE_C_COMPILER)
  7. message(FATAL_ERROR "Failed to find CMAKE_C_COMPILER.")
  8. endif()
  9. if(NOT CMAKE_CXX_COMPILER)
  10. message(FATAL_ERROR "Failed to find CMAKE_CXX_COMPILER.")
  11. endif()
  12. if(NOT CMAKE_RC_COMPILER)
  13. message(FATAL_ERROR "Failed to find CMAKE_RC_COMPILER.")
  14. endif()