[Cmake] pb when CC="ccache gcc" (on linux)
Fabrice Bellet
fabrice at bellet.info
Fri Feb 21 11:29:07 EST 2003
Hello,
I noticed a behaviour change when upgrading to cmake 1.6.X version.
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".
The cmake compilation fails (on linux) with this error :
make[1]: Leaving directory `/home/bellet/rpm/BUILD/cmake-1.6.5/Bootstrap/Source'
-- Check for working C compiler: /usr/bin/ccache
-- Check for working C compiler: /usr/bin/ccache -- broken
The C compiler "/usr/bin/ccache" is not able to compile a simple tests program.
It fails with the following output:
echo "Building object file testCCompiler.o..."
Building object file testCCompiler.o...
/usr/bin/ccache -o testCCompiler.o -O3 -fomit-frame-pointer -pipe -march=i386 -mcpu=i686 gcc -O3 -fomit-frame-pointer -pipe -march=i386 -mcpu=i686 -I/home/bellet/rpm/BUILD/cmake-1.6.5/CMakeTmp -c /home/bellet/rpm/BUILD/cmake-1.6.5/CMakeTmp/testCCompiler.c
/usr/bin/ccache: invalid option -- o
The same problem occurs when compiling VTK with this cmake version.
Best wishes,
--
fabrice
More information about the CMake
mailing list