summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-05-12 13:12:41 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-05-12 13:12:41 (GMT)
commitcca3bbde98de7954ebd3bca1966c92d931fe0dab (patch)
tree7ee79ab236c4982d25b8b8caa9bc2e05514ba009 /Modules
parent0f2658f62d949137c9b0b9081d1a93e5f39d2bb2 (diff)
parentcf8ce7a39e425aa5ea6a4847f512b8e8628af61a (diff)
downloadCMake-cca3bbde98de7954ebd3bca1966c92d931fe0dab.zip
CMake-cca3bbde98de7954ebd3bca1966c92d931fe0dab.tar.gz
CMake-cca3bbde98de7954ebd3bca1966c92d931fe0dab.tar.bz2
Merge topic 'ninja-gcc-windows'
cf8ce7a3 RC: Do not override MinGW Makefiles generator preference ca658a45 Ninja: Use forward slashes for linking with any GCC on Windows (#15439)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Windows-GNU.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake
index c0d7d8c..b571b16 100644
--- a/Modules/Platform/Windows-GNU.cmake
+++ b/Modules/Platform/Windows-GNU.cmake
@@ -138,7 +138,7 @@ macro(__windows_compiler_gnu lang)
endforeach()
endif()
- if(NOT CMAKE_RC_COMPILER_INIT)
+ if(NOT CMAKE_RC_COMPILER_INIT AND NOT CMAKE_GENERATOR_RC)
set(CMAKE_RC_COMPILER_INIT windres)
endif()