diff options
| author | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
| commit | 5a079a2d114f96d4847d1ee305d5b7c16eeec50e (patch) | |
| tree | 8926ab44f168acf787d8e19608857b3af0f82758 /contrib/SDL-3.2.8/build-scripts/cmake-toolchain-mingw64-x86_64.cmake | |
Initial commit
Diffstat (limited to 'contrib/SDL-3.2.8/build-scripts/cmake-toolchain-mingw64-x86_64.cmake')
| -rw-r--r-- | contrib/SDL-3.2.8/build-scripts/cmake-toolchain-mingw64-x86_64.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/build-scripts/cmake-toolchain-mingw64-x86_64.cmake b/contrib/SDL-3.2.8/build-scripts/cmake-toolchain-mingw64-x86_64.cmake new file mode 100644 index 0000000..8bf4366 --- /dev/null +++ b/contrib/SDL-3.2.8/build-scripts/cmake-toolchain-mingw64-x86_64.cmake | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | set(CMAKE_SYSTEM_NAME Windows) | ||
| 2 | set(CMAKE_SYSTEM_PROCESSOR x86_64) | ||
| 3 | |||
| 4 | find_program(CMAKE_C_COMPILER NAMES x86_64-w64-mingw32-gcc) | ||
| 5 | find_program(CMAKE_CXX_COMPILER NAMES x86_64-w64-mingw32-g++) | ||
| 6 | find_program(CMAKE_RC_COMPILER NAMES x86_64-w64-mingw32-windres windres) | ||
| 7 | |||
| 8 | if(NOT CMAKE_C_COMPILER) | ||
| 9 | message(FATAL_ERROR "Failed to find CMAKE_C_COMPILER.") | ||
| 10 | endif() | ||
| 11 | |||
| 12 | if(NOT CMAKE_CXX_COMPILER) | ||
| 13 | message(FATAL_ERROR "Failed to find CMAKE_CXX_COMPILER.") | ||
| 14 | endif() | ||
| 15 | |||
| 16 | if(NOT CMAKE_RC_COMPILER) | ||
| 17 | message(FATAL_ERROR "Failed to find CMAKE_RC_COMPILER.") | ||
| 18 | endif() | ||
