cmake does not work well with ccache
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cmake (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: cmake
Using Ubuntu 11.04, trying to use CMake with ccache via
export CC='ccache gcc'
export CXX='ccache g++'
results in a lot (once per system check) of output like below during cmake run. It looks like ccache was invoked with wrong parameter . If I use compiled cmake 2.8.4 from source , this does not happen.
Output
-- Check for working CXX compiler: /usr/bin/ccache
/usr/bin/ccache: invalid option -- 'd'
Usage:
ccache [options]
ccache compiler [compiler options]
compiler [compiler options] (via symbolic link)
Options:
-c, --cleanup delete old files and recalculate size counters
-C, --clear clear the cache completely
-F, --max-files=N set maximum number of files in cache to N (use 0 for
-M, --max-size=SIZE set maximum size of cache to SIZE (use 0 for no
-s, --show-stats show statistics summary
-z, --zero-stats zero statistics counters
-h, --help print this help text
-V, --version print version and copyright information
See also <http://
dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation)
I can confirm this bug. Compiling the newest veriosn of cmake (2.8.4) solve the problem.