cmake-toolchain-mingw64-x86_64.cmake 375 B

12345678910111213
  1. set(CMAKE_SYSTEM_NAME Windows)
  2. set(CMAKE_SYSTEM_PROCESSOR x86_64)
  3. find_program(CMAKE_C_COMPILER NAMES x86_64-w64-mingw32-gcc)
  4. find_program(CMAKE_CXX_COMPILER NAMES x86_64-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()