[cmake-developers] [CMake 0011679]: CMAKE_FORCE_C_COMPILER fails to parse compiler name that contains a version number

Mantis Bug Tracker mantis at public.kitware.com
Mon Jan 10 17:14:09 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11679 
====================================================================== 
Reported By:                Emmanuel Blot
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11679
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-01-10 17:14 EST
Last Modified:              2011-01-10 17:14 EST
====================================================================== 
Summary:                    CMAKE_FORCE_C_COMPILER fails to parse compiler name
that contains a version number
Description: 
Using the following commands:
  FIND_PROGRAM (xcc arm-eabi-gcc)
  CMAKE_FORCE_C_COMPILER (${xcc} GNU)
works as expected.

RANLIB and AR commands are mapped to the same target, namely:
arm-eabi-ranlib and arm-eabi-ar
  
However, when a version is specified:
  FIND_PROGRAM (xcc arm-eabi-gcc-4.5.2)
  CMAKE_FORCE_C_COMPILER (${xcc} GNU)
RANLIB and AR commands are left to the default, host tools (which lead to later
compilation errors)

In this latter case, the _CMAKE_TOOLCHAIN_PREFIX is left empty. It seems that
the compiler string parser is in trouble.


Additional Information: 
The issue occurs whatever the platform (at least tested on Cygwin and Mac OS X),
and it seems it may also occur with CMAKE_C_COMPILER.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-10 17:14 Emmanuel Blot  New Issue                                    
======================================================================




More information about the cmake-developers mailing list