cmake-toolchain-mingw64-i686.cmake 368 B

12345678910111213
  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. if(NOT CMAKE_C_COMPILER)
  6. message(FATAL_ERROR "Failed to find CMAKE_C_COMPILER.")
  7. endif()
  8. if(NOT CMAKE_CXX_COMPILER)
  9. message(FATAL_ERROR "Failed to find CMAKE_CXX_COMPILER.")
  10. endif()