[cmake-developers] [CMake 0014865]: CMakeDetermineRCCompiler does not detect windres from "i686-w64-mingw32.shared-windres"

Mantis Bug Tracker mantis at public.kitware.com
Mon Apr 7 17:42:48 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14865 
====================================================================== 
Reported By:                Kai Pastor
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14865
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-04-07 23:42 CEST
Last Modified:              2014-04-07 23:42 CEST
====================================================================== 
Summary:                    CMakeDetermineRCCompiler does not detect windres
from "i686-w64-mingw32.shared-windres"
Description: 
CMakeDetermineRCCompiler.cmake uses the name without ending for identifying
windres:

GET_FILENAME_COMPONENT(CMAKE_BASE_NAME ${CMAKE_RC_COMPILER} NAME_WE)
IF("${CMAKE_BASE_NAME}" MATCHES "windres")
  SET(CMAKE_BASE_NAME "windres")
ENDIF()

This code fails to detect windres when the filename contains the period in the
prefix. This is the case e.g. when using a shared-lib cross compilation
toolchain from mxe.cc (development version) where windres is named
i686-w64-mingw32.shared-windres.

I see that in general the ending needs to be removed from the filename. However,
for detecting windres the full filename should be matched.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-04-07 23:42 Kai Pastor     New Issue                                    
======================================================================



More information about the cmake-developers mailing list