[CMake] cmake 2.2.0 and 'ccache'
Eddy Pronk
epronk at muftor.com
Tue Jul 19 03:34:40 EDT 2005
aka50 wrote:
>I think, that you can create two scripts (like compilercache does)
>'g++' and 'c++' which in turn call 'ccache g++' and 'ccache c++'
>and all things should work.
As you can see below the CC variable is broken in two pieces and flags are
inserted inbetween.
export 'CC=ccache arm-linux-gcc'
export 'CFLAGS='-I/home/epronk/oe/build/tmp/staging/arm-linux/include
-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2'
Building C object cmTryCompileExec.dir/testCCompiler.o
/usr/bin/ccache -o cmTryCompileExec.dir/testCCompiler.o
-I/home/epronk/oe/build/tmp/staging/arm-linux/include
-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2
arm-linux-gcc -I/home/epronk/oe/build/tmp/staging/arm-linux/include
-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2
-c
/home/epronk/oe/build/tmp/work/allegro-1.0-r0/allegro-1.0/CMakeTmp/testCCompiler.c
| /usr/bin/ccache: invalid option -- o
| ccache, a compiler cache. Version 2.3
| Copyright Andrew Tridgell, 2002
Creating some wrapper script could be a good workaround.
Eddy
More information about the CMake
mailing list