summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2012-08-27 14:54:21 (GMT)
committerPeter Kümmel <syntheticpp@gmx.net>2012-08-27 14:54:21 (GMT)
commitbe9afbf4535f5dc3650ea41480b2c9a58d4f94c0 (patch)
tree49a0a0d5ddb360636d118aca2956756eeb4d8fb3 /Modules/Platform
parentf32e7957b4f6cb57e396ec018947d46420072671 (diff)
downloadCMake-be9afbf4535f5dc3650ea41480b2c9a58d4f94c0.zip
CMake-be9afbf4535f5dc3650ea41480b2c9a58d4f94c0.tar.gz
CMake-be9afbf4535f5dc3650ea41480b2c9a58d4f94c0.tar.bz2
Find mingw's windres also when Unix Makefiles are used
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Windows-GNU.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake
index 50ba80b..2bb7a20 100644
--- a/Modules/Platform/Windows-GNU.cmake
+++ b/Modules/Platform/Windows-GNU.cmake
@@ -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)