[cmake-developers] [CMake 0012392]: CMakeFindEclipseCDT4.cmake ignores CMAKE_CXX_COMPILER_ARG1 in compiler invocation

Mantis Bug Tracker mantis at public.kitware.com
Mon Aug 8 03:55:12 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12392 
====================================================================== 
Reported By:                Axel Sander
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12392
Category:                   CCMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-08-08 03:55 EDT
Last Modified:              2011-08-08 03:55 EDT
====================================================================== 
Summary:                    CMakeFindEclipseCDT4.cmake ignores
CMAKE_CXX_COMPILER_ARG1 in compiler invocation
Description: 
While trying to find system include dirs, in the script
CMakeFindEclipseCDT4.cmake the compile is called with:
 ... COMMAND ${_compilerExecutable} -v -E -P -x ${_lang} -dD dummy ...
When using something like ccache or distcc these commands are called directly
with the parameter above and complain about unknown options -v.
In the lines:
  SET(_compilerExecutable "${CMAKE_CXX_COMPILER}");
and
  SET(_compilerExecutable "${CMAKE_C_COMPILER}");
the compiler arguments like ${CMAKE_CXX_COMPILER_ARG1},
${CMAKE_C_COMPILER_ARG1}... are not used.

Steps to Reproduce: 
with:
  CC="ccache gcc" CXX="ccache g++" cmake -G "Eclipse CDT4 - Unix Makefiles" .
the .cproject does not contain system includes.

To view the problem use:
  MESSAGE(STATUS "gccOutput: ${_gccOutput}")
  MESSAGE(STATUS "gccStdout: ${_gccStdout}")
after invocation of
  EXECUTE_PROCESS(COMMAND ${_compilerExecutable}...)
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-08-08 03:55 Axel Sander    New Issue                                    
======================================================================




More information about the cmake-developers mailing list