[CMake] cmake 2.2.0 and 'ccache'
Joel Schaerer
joel.schaerer at insa-lyon.fr
Tue Jul 19 05:49:43 EDT 2005
Eddy Pronk wrote:
> I tried to use CMake 2.2.0b in the OpenEmbedded tree.
> It defines CC = 'ccache gcc'.
>
> (see http://ccache.samba.org/)
>
> When CMake tests the compiler it fails.
> Anyone tried using ccache with CMake?
>
> Eddy
>
>
>
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
Hi,
I use ccache with cmake and I find it very useful. I had problems too
when defining the compiler, so I use the following workaround:
In the CMakeLists.txt:
SET(CMAKE_CXX_COMPILER "$(HOME)/bin/g++")
and the file ~/bin/g++ is a soft link defined this way:
g++ -> /usr/bin/ccache
It's a bit ugly, but it works perfectly. Has anybody found any other
solutions?
joel
More information about the CMake
mailing list