AW: [CMake] SET_CXX_COMPILER

William A. Hoffman billlist at nycap.rr.com
Thu Feb 16 13:45:17 EST 2006


At 12:48 PM 2/16/2006, Sören Freudiger wrote:
>hmm, sorry about to say that, but:
>this doesn't seems to work.
>
>bash:
>export CXX="gcc" 
>or
>export CXX="mpicxx"
>
>CMakeLists.txt
>MESSAGE(${CMAKE_CXX_COMPILER})
>
>results in "ccmake ."
>c++
>
>and is CMAKE_CXX_COMPILER set to: /usr/bin/c++
>
>what can I do?
>
>I tested the last stable cmake version 2.2 patch 3 and 2.2 develop from CVS

Did you start with a clean build tree?   This does work, and is tested
on several dashboards.  Once the compiler is set it can not be changed without
removing CMakeCache.txt and all the files in CMakeFiles.   

-Bill



More information about the CMake mailing list