summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-25 11:18:08 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-25 11:21:01 (GMT)
commitaf4adf6aa9dd86d8ebb7d24590c1101f3a195ec8 (patch)
treeb0d07aa77544e9f0f1d2495c1ee847039b566ed7 /Modules/Platform
parent0251ddadab687dc3ad62c39381201fcd1f7c534f (diff)
downloadCMake-af4adf6aa9dd86d8ebb7d24590c1101f3a195ec8.zip
CMake-af4adf6aa9dd86d8ebb7d24590c1101f3a195ec8.tar.gz
CMake-af4adf6aa9dd86d8ebb7d24590c1101f3a195ec8.tar.bz2
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
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Windows-GNU.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake
index 00c1eb2..5f1923c 100644
--- a/Modules/Platform/Windows-GNU.cmake
+++ b/Modules/Platform/Windows-GNU.cmake
@@ -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)