What I saw today in the sources is that cmake uses /usr/bin/ccache as it's compiler, and gcc/cc/g++ as it's first argument... So it should work, but I have no idea why it returns it cannot find the file cc.
That is imho somewhere an error in the execute process (or a misinterpretion of the macro from my end). Either way, it would be nice if it could be supported ;) On 11/5/07, Pierre Chifflier <[EMAIL PROTECTED]> wrote: > On Mon, Nov 05, 2007 at 04:24:51PM +0100, Steven Van Ingelgem wrote: > > Hi, > > > > > > I had a problem trying to use ccache with cmake the following way: > > > > > > $ export GCC="ccache gcc" > > $ export CC="ccache cc" > > $ export CXX="ccache g++" > > $ cmake . (in the root of the -clean- CMake CVS directory) > > > Hi, > > AFAIK, cmake does not support this way of using ccache (the compiler > name is not passed to the shell, but taken as an executable name). > > One way of doing what you want is to use ccache links. Try either > export CC="/usr/lib/ccache/cc" > ... > > or > > export PATH="/usr/lib/ccache/" > cmake . > > HTH, > Pierre > _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
