summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-12-14 00:57:00 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-12-14 00:57:00 (GMT)
commit6ddb1e5b9a3eff941ad12d29609839871fe518ed (patch)
treec46b307cadc8a55e28724189b1c7c0264c973441 /Modules
parent3c101429a4e563f4c711cae84317806284784eb6 (diff)
downloadCMake-6ddb1e5b9a3eff941ad12d29609839871fe518ed.zip
CMake-6ddb1e5b9a3eff941ad12d29609839871fe518ed.tar.gz
CMake-6ddb1e5b9a3eff941ad12d29609839871fe518ed.tar.bz2
Modules: Use "windres" as rc compiler base name for cross-compiles (#12480)
...if it matches "windres", as opposed to being exactly equal to "windres" Cross-compiling windres compilers are named something like "i686-w64-mingw32-windres" (for example)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeRCInformation.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeRCInformation.cmake b/Modules/CMakeRCInformation.cmake
index fcd0099..859fe11 100644
--- a/Modules/CMakeRCInformation.cmake
+++ b/Modules/CMakeRCInformation.cmake
@@ -20,6 +20,9 @@
# make sure we don't use CMAKE_BASE_NAME from somewhere else
SET(CMAKE_BASE_NAME)
GET_FILENAME_COMPONENT(CMAKE_BASE_NAME ${CMAKE_RC_COMPILER} NAME_WE)
+IF("${CMAKE_BASE_NAME}" MATCHES "windres")
+ SET(CMAKE_BASE_NAME "windres")
+ENDIF()
SET(CMAKE_SYSTEM_AND_RC_COMPILER_INFO_FILE
${CMAKE_ROOT}/Modules/Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME}.cmake)
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL)