[cmake-developers] [CMake 0011707]: Cannot use ccache when building cmake

Mantis Bug Tracker mantis at public.kitware.com
Sun Jan 16 13:50:29 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11707 
====================================================================== 
Reported By:                Nicolas Despres
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11707
Category:                   (No Category)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-01-16 13:50 EST
Last Modified:              2011-01-16 13:50 EST
====================================================================== 
Summary:                    Cannot use ccache when building cmake
Description: 
If have tried to bootstrap cmake using ccache and gcc by setting CC='ccache gcc'
and CXX='ccache g++' but it does not work and ccache is not used.

Steps to Reproduce: 
$ mkdir _build
$ cd _build
$ CC='ccache gcc' CXX='ccache g++' ../configure --prefix="$HOME/usr/stow/cmake"
--qt-gui --qt-qmake=/usr/bin/qmake --parallel=2 --verbose


Additional Information: 
I have attached the cmake_bootstrap.log. Apparently bootstrap understands CC and
CXX as a list so it first tries ccache alone as a compiler and then gcc alone.
Of course ccache alone fails to build the test program so gcc is picked up
instead of 'ccache gcc'.

I would suggest to add a --enable-ccache option to this script. I'll try to
write a patch.

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-16 13:50 Nicolas DespresNew Issue                                    
2011-01-16 13:50 Nicolas DespresFile Added: cmake_bootstrap.log                 
  
======================================================================




More information about the cmake-developers mailing list