summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-26 13:06:04 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-03-26 13:06:13 (GMT)
commit545875bebe8faec350dbe23bbae58eb6c17e6524 (patch)
tree4d108dd35bcf3ee3f512f7e87661c3be9fb59e44 /Modules
parent66e0b312c0985493adeeda63d1dc7815cc0fe364 (diff)
parentaf4adf6aa9dd86d8ebb7d24590c1101f3a195ec8 (diff)
downloadCMake-545875bebe8faec350dbe23bbae58eb6c17e6524.zip
CMake-545875bebe8faec350dbe23bbae58eb6c17e6524.tar.gz
CMake-545875bebe8faec350dbe23bbae58eb6c17e6524.tar.bz2
Merge topic 'mingw-windres-cross-compile'
af4adf6aa9 MinGW: Fix default windres selection when cross-compiling 0251ddadab MinGW: Drop unnecessary windres selection code with Unix Makefiles Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4520
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Windows-GNU.cmake6
1 files changed, 1 insertions, 5 deletions
diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake
index 38a8cf4..5f1923c 100644
--- a/Modules/Platform/Windows-GNU.cmake
+++ b/Modules/Platform/Windows-GNU.cmake
@@ -47,10 +47,6 @@ if("${_help}" MATCHES "GNU ld .* 2\\.1[1-6]")
set(__WINDOWS_GNU_LD_RESPONSE 0)
endif()
-if(NOT CMAKE_GENERATOR_RC AND CMAKE_GENERATOR MATCHES "Unix Makefiles")
- set(CMAKE_GENERATOR_RC windres)
-endif()
-
macro(__windows_compiler_gnu lang)
if(MSYS OR MINGW)
@@ -132,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)