[cmake-developers] [CMake 0014288]: eCos platform enforces GNU compiler

Mantis Bug Tracker mantis at public.kitware.com
Fri Jul 12 06:30:33 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14288 
====================================================================== 
Reported By:                Emmanuel Blot
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14288
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-07-12 12:30 CEST
Last Modified:              2013-07-12 12:30 CEST
====================================================================== 
Summary:                    eCos platform enforces GNU compiler
Description: 
I am building eCos kernel and eCos-based project with Clang (3.3), but
share/cmake/Modules/Platform/eCos.cmake enforces a GNU compiler, whereas it
should tolerate a Clang compiler:

CMAKE_FORCE_C_COMPILER (${xcc} Clang)
CMAKE_FORCE_CXX_COMPILER (${xcc} Clang)

should be used, but

CMAKE_FORCE_C_COMPILER (${xcc} GNU)
CMAKE_FORCE_CXX_COMPILER (${xcc} GNU)

is mandatory due to these lines in share/cmake/Modules/Platform/eCos.cmake

if(CMAKE_C_COMPILER AND NOT  "${CMAKE_C_COMPILER_ID}" MATCHES "GNU" AND NOT
_IN_TC)
  message(FATAL_ERROR "GNU gcc is required for eCos")
endif()
if(CMAKE_CXX_COMPILER AND NOT  "${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU" AND NOT
_IN_TC)
  message(FATAL_ERROR "GNU g++ is required for eCos")
endif()


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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-07-12 12:30 Emmanuel Blot  New Issue                                    
======================================================================




More information about the cmake-developers mailing list