mirror of
https://github.com/Kitware/CMake.git
synced 2026-07-20 14:31:06 +00:00
Merge topic 'mingw-windres-cross-compile'
af4adf6aa9MinGW: Fix default windres selection when cross-compiling0251ddadabMinGW: Drop unnecessary windres selection code with Unix Makefiles Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4520
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user