summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-3.2.20/build-scripts/cmake-toolchain-mingw64-i686.cmake
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-08-30 16:53:58 -0700
committer3gg <3gg@shellblade.net>2025-08-30 16:53:58 -0700
commit6aaedb813fa11ba0679c3051bc2eb28646b9506c (patch)
tree34acbfc9840e02cb4753e6306ea7ce978bf8b58e /src/contrib/SDL-3.2.20/build-scripts/cmake-toolchain-mingw64-i686.cmake
parent8f228ade99dd3d4c8da9b78ade1815c9adf85c8f (diff)
Update to SDL3
Diffstat (limited to 'src/contrib/SDL-3.2.20/build-scripts/cmake-toolchain-mingw64-i686.cmake')
-rw-r--r--src/contrib/SDL-3.2.20/build-scripts/cmake-toolchain-mingw64-i686.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/contrib/SDL-3.2.20/build-scripts/cmake-toolchain-mingw64-i686.cmake b/src/contrib/SDL-3.2.20/build-scripts/cmake-toolchain-mingw64-i686.cmake
new file mode 100644
index 0000000..8be7b3a
--- /dev/null
+++ b/src/contrib/SDL-3.2.20/build-scripts/cmake-toolchain-mingw64-i686.cmake
@@ -0,0 +1,18 @@
1set(CMAKE_SYSTEM_NAME Windows)
2set(CMAKE_SYSTEM_PROCESSOR x86)
3
4find_program(CMAKE_C_COMPILER NAMES i686-w64-mingw32-gcc)
5find_program(CMAKE_CXX_COMPILER NAMES i686-w64-mingw32-g++)
6find_program(CMAKE_RC_COMPILER NAMES i686-w64-mingw32-windres windres)
7
8if(NOT CMAKE_C_COMPILER)
9 message(FATAL_ERROR "Failed to find CMAKE_C_COMPILER.")
10endif()
11
12if(NOT CMAKE_CXX_COMPILER)
13 message(FATAL_ERROR "Failed to find CMAKE_CXX_COMPILER.")
14endif()
15
16if(NOT CMAKE_RC_COMPILER)
17 message(FATAL_ERROR "Failed to find CMAKE_RC_COMPILER.")
18endif()