SDL: cmake: add winres to the list of potential name rc compilers

From 4898505f23f835445b4a0a618cd7ca525d734def Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Tue, 5 Mar 2024 20:38:00 +0100
Subject: [PATCH] cmake: add winres to the list of potential name rc compilers

---
 build-scripts/cmake-toolchain-mingw64-i686.cmake   | 2 +-
 build-scripts/cmake-toolchain-mingw64-x86_64.cmake | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-scripts/cmake-toolchain-mingw64-i686.cmake b/build-scripts/cmake-toolchain-mingw64-i686.cmake
index e7892ee8cb188..8be7b3a80fe07 100644
--- a/build-scripts/cmake-toolchain-mingw64-i686.cmake
+++ b/build-scripts/cmake-toolchain-mingw64-i686.cmake
@@ -3,7 +3,7 @@ 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)
+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.")
diff --git a/build-scripts/cmake-toolchain-mingw64-x86_64.cmake b/build-scripts/cmake-toolchain-mingw64-x86_64.cmake
index be3efd9429e41..8bf436695e1fd 100644
--- a/build-scripts/cmake-toolchain-mingw64-x86_64.cmake
+++ b/build-scripts/cmake-toolchain-mingw64-x86_64.cmake
@@ -3,7 +3,7 @@ set(CMAKE_SYSTEM_PROCESSOR x86_64)
 
 find_program(CMAKE_C_COMPILER NAMES x86_64-w64-mingw32-gcc)
 find_program(CMAKE_CXX_COMPILER NAMES x86_64-w64-mingw32-g++)
-find_program(CMAKE_RC_COMPILER NAMES x86_64-w64-mingw32-windres)
+find_program(CMAKE_RC_COMPILER NAMES x86_64-w64-mingw32-windres windres)
 
 if(NOT CMAKE_C_COMPILER)
 	message(FATAL_ERROR "Failed to find CMAKE_C_COMPILER.")