Files
ircolib/build-scripts/cmake-toolchain-mingw64-i686.cmake
T
iris 411251c624 Squashed 'external/SDL/' content from commit 716c767b7
git-subtree-dir: external/SDL
git-subtree-split: 716c767b7e7099fb0e2fda9db59227a7e1d1d8a4
2026-05-13 17:47:57 +02:00

19 lines
539 B
CMake

set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_PROCESSOR x86)
find_program(CMAKE_C_COMPILER NAMES i686-w64-mingw32-gcc)
find_program(CMAKE_CXX_COMPILER NAMES i686-w64-mingw32-g++)
find_program(CMAKE_RC_COMPILER NAMES i686-w64-mingw32-windres windres)
if(NOT CMAKE_C_COMPILER)
message(FATAL_ERROR "Failed to find CMAKE_C_COMPILER.")
endif()
if(NOT CMAKE_CXX_COMPILER)
message(FATAL_ERROR "Failed to find CMAKE_CXX_COMPILER.")
endif()
if(NOT CMAKE_RC_COMPILER)
message(FATAL_ERROR "Failed to find CMAKE_RC_COMPILER.")
endif()