Merge topic 'mingw-unix-generator'

be9afbf Find mingw's windres also when Unix Makefiles are used
This commit is contained in:
Brad King 2012-08-30 11:54:32 -04:00 committed by CMake Topic Stage
commit 98a6565b60
1 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,10 @@ 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()
enable_language(RC)
macro(__windows_compiler_gnu lang)