[Cmake] pb when CC="ccache gcc" (on linux)

William A. Hoffman bill.hoffman at kitware.com
Fri Feb 21 12:13:27 EST 2003


Unfortunately, that will not work.   I am not sure there is a way
to do this with the current cmake.   It expects CC to be the compiler and
it will try use it like one, and it is not one.

You might be able to do it by creating a custom platform module for OS-ccache.

-Bill


At 12:00 PM 2/21/2003 -0500, Brad King wrote:
> > I can no longer use the CC and CXX environment variables with a compiler
> > name being splitted in several words. This is typically useful when
> > using a cache compiler, like http://ccache.samba.org. You define your
> > compiler name as CC="ccache gcc".
>
>Try setting
>
>CC=ccache
>CXX=ccache
>CFLAGS=gcc
>CXXFLAGS=g++
>
>-Brad
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake






More information about the CMake mailing list