[CMake] trouble setting compiler using ccmake

Bill Hoffman bill.hoffman at kitware.com
Fri Jan 5 12:52:32 EST 2007


Wojciech Jarosz wrote:
> Using ccmake to try to modify the c or c++ compiler (to use g++32
> instead of g++ for instance) doesn't work. When I modify the value and
> then press c to configure it resets my CMAKE_CXX_COMPILER variable to
> /usr/bin/c++. If I provide these values on the command line using
> -DCMAKE_CXX_COMPILER=/usr/bin/g++32 then it works fine (and it also
> puts an asterisk next to the name). What is the proper way of changing
> values in ccmake so that they stick?
The compiler can not currently be changed from ccmake.  The environment 
variables
CXX and CC should be set prior to running ccmake to set the compiler.  
The problem is
the try compile results all become invalid when you change compilers and 
there is no way
to do that currently.

-Bill



More information about the CMake mailing list