mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
MinGW: Fix default windres selection when cross-compiling
When cross-compiling to MinGW, select the `windres` tool named with the toolchain's prefix. Fixes: #20500
This commit is contained in:
@@ -128,7 +128,7 @@ macro(__windows_compiler_gnu lang)
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_RC_COMPILER_INIT AND NOT CMAKE_GENERATOR_RC)
|
||||
set(CMAKE_RC_COMPILER_INIT windres)
|
||||
set(CMAKE_RC_COMPILER_INIT ${_CMAKE_TOOLCHAIN_PREFIX}windres)
|
||||
endif()
|
||||
|
||||
enable_language(RC)
|
||||
|
||||
Reference in New Issue
Block a user