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                                    
======================================================================

--

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

Reply via email to