[CMake] cmake -DCMAKE_CXX_COMPILER=g++ does not work as expected
Erik Johansson
erik at ejohansson.se
Tue Nov 13 15:04:06 EST 2007
Hi,
Running cmake with -DCMAKE_CXX_COMPILER=g++ gives the following output:
-- Check for working CXX compiler: g++
-- Check for working CXX compiler: g++ -- works
But building fails since it tries to use g++ from the build dir. From
CMakeCache.txt:
CMAKE_CXX_COMPILER:FILEPATH=/home/erik/tmp/test/build/g++
Running cmake with -DCMAKE_CXX_COMPILER:FILEPATH=g++ or even
-DCMAKE_CXX_COMPILER:STRING=g++ gives the expected result. From
CMakeCache.txt:
CMAKE_CXX_COMPILER:FILEPATH=/usr/lib/ccache/g++
Is this the expected behavior?
// Erik
P.S. Using cmake 2.4.7
--
Erik Johansson
Home Page: http://ejohansson.se/
PGP Key: http://ejohansson.se/erik.asc
More information about the CMake
mailing list