diff options
author | Brad King <brad.king@kitware.com> | 2020-03-25 11:18:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-03-25 11:21:01 (GMT) |
commit | af4adf6aa9dd86d8ebb7d24590c1101f3a195ec8 (patch) | |
tree | b0d07aa77544e9f0f1d2495c1ee847039b566ed7 /Modules/Platform | |
parent | 0251ddadab687dc3ad62c39381201fcd1f7c534f (diff) | |
download | CMake-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.cmake | 2 |
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) |