MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0007235 | CMake | CMake | public | 2008-06-24 08:56 | 2016-06-10 14:30 |
Reporter | Adam Strzelecki | ||||
Assigned To | Bill Hoffman | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | CMake-2-6 | ||||
Target Version | Fixed in Version | ||||
Summary | 0007235: RC generation broken for MinGW, causes infinite loop for CL (Microsoft compiler) (w/patch) | ||||
Description | MinGW does have only Microsoft's RC recipe for generating resource files using "rc" command, while MinGW uses its own "windres". Moreover latest enable_language change causes infinite loop in Windows-cl.cmake that enables RC language: [103] /opt/local/share/cmake-2.6/Modules/Platform/Windows-cl.cmake [102] /opt/local/share/cmake-2.6/Modules/CMakeSystemSpecificInformation.cmake [101] /opt/local/share/cmake-2.6/Modules/Platform/Windows-cl.cmake [100] /opt/local/share/cmake-2.6/Modules/CMakeSystemSpecificInformation.cmake [99] /opt/local/share/cmake-2.6/Modules/Platform/Windows-cl.cmake [98] /opt/local/share/cmake-2.6/Modules/CMakeSystemSpecificInformation.cmake [97] /opt/local/share/cmake-2.6/Modules/Platform/Windows-cl.cmake [96] /opt/local/share/cmake-2.6/Modules/CMakeSystemSpecificInformation.cmake Removing ENABLE_LANGUAGE(RC) from Windows-cl.cmake solves the problem. Adding COMPILE_RC_OBJECT definition to Windows-gcc makes it use "windres" properly. I've added also "windres" to CMakeDetermineRCCompiler.cmake, however it has different command line, that is specified next to compiler (Windows-gcc.cmake or cl.cmake), so it may be a problem when we have mixed environment and "rc" will be taken from Microsoft env,(1st in the list) while gcc from MingW will be requested. I'm not sure how to sort it out. So this patch needs review. Anyway it is not possible to build RC files with MinGW with 2.6.0 so I believe it should fixed before 2.6.1. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/1556/CMake_broken_RC_generation.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2008-06-24 08:56 | Adam Strzelecki | New Issue | |||
2008-06-24 08:56 | Adam Strzelecki | File Added: CMake_broken_RC_generation.patch | |||
2008-06-24 15:55 | Bill Hoffman | Note Added: 0012505 | |||
2008-06-24 17:03 | Adam Strzelecki | Note Added: 0012509 | |||
2008-08-21 09:01 | Bill Hoffman | Status | new => assigned | ||
2008-08-21 09:01 | Bill Hoffman | Assigned To | => Bill Hoffman | ||
2008-08-26 13:18 | Michał Fita | Note Added: 0013189 | |||
2014-10-21 20:09 | Timothy Gu | Note Added: 0037060 | |||
2016-06-10 14:27 | Kitware Robot | Note Added: 0041433 | |||
2016-06-10 14:27 | Kitware Robot | Status | assigned => resolved | ||
2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:30 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|