The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=12870 ====================================================================== Reported By: Sam Morris Assigned To: ====================================================================== Project: CMake Issue ID: 12870 Category: Modules Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2012-01-10 07:29 EST Last Modified: 2012-01-10 07:29 EST ====================================================================== Summary: CMakeDetermineRCCompiler does not correctly identify GNU windres when cross-compiling Description: I'm cross compiling on Linux with CMAKE_SYSTEM_NAME set to Windows.
CmakeDetermineRCCompiler contains the following code: GET_FILENAME_COMPONENT(_CMAKE_RC_COMPILER_NAME_WE ${CMAKE_RC_COMPILER} NAME_WE) IF(_CMAKE_RC_COMPILER_NAME_WE STREQUAL "windres") SET(CMAKE_RC_OUTPUT_EXTENSION .obj) ELSE() SET(CMAKE_RC_OUTPUT_EXTENSION .res) ENDIF() CMAKE_C_COMPILER is set to 'i686-w64-mingw32-windres', therefore the above code goes down the wrong branch, and ends up setting CMAKE_RC_OUTPUT_EXTENSION to '.res'. Additional Information: I'm actually trying to debug a separate problem: nothing is processing Modules/Platform/Windows-windres.cmake and I don't know why. I mention this here because I see the above code was added in the same commit that Windows-windres.cmake was added: <http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b2f308c8> ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-01-10 07:29 Sam Morris New Issue ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers