diff options
author | Brad King <brad.king@kitware.com> | 2022-11-29 15:06:42 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-11-29 15:06:53 (GMT) |
commit | 1efae6d4a7a3369ab4cd85a189505d47e1f9042e (patch) | |
tree | 88cee8694a88da54df86c2ac5aa96ae4c1a1b2e2 /Modules/Platform | |
parent | 512056158f8f7be1b99ca3f14274d686658174d4 (diff) | |
parent | b47092fddb51e2e89fa083af5c15fb6b81f35186 (diff) | |
download | CMake-1efae6d4a7a3369ab4cd85a189505d47e1f9042e.zip CMake-1efae6d4a7a3369ab4cd85a189505d47e1f9042e.tar.gz CMake-1efae6d4a7a3369ab4cd85a189505d47e1f9042e.tar.bz2 |
Merge topic 'mingw-windres'
b47092fddb MinGW: Fix regression when windres is not found
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7964
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Windows-GNU.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake index bf96e63..088b238 100644 --- a/Modules/Platform/Windows-GNU.cmake +++ b/Modules/Platform/Windows-GNU.cmake @@ -157,7 +157,8 @@ macro(__windows_compiler_gnu lang) endif() if(NOT CMAKE_RC_COMPILER_INIT AND NOT CMAKE_GENERATOR_RC) - set(CMAKE_RC_COMPILER_INIT ${_CMAKE_TOOLCHAIN_PREFIX}windres windres) + set(_CMAKE_RC_COMPILER_LIST ${_CMAKE_TOOLCHAIN_PREFIX}windres windres) + set(_CMAKE_RC_COMPILER_FALLBACK windres) endif() enable_language(RC) |