[CMake] Re: Cmake and CXX

Brad King brad.king at kitware.com
Fri Sep 22 08:52:48 EDT 2006


Xavier Larrode wrote:
> Filipe Sousa a écrit :
>> On Friday 22 September 2006 08:15, Xavier Larrode wrote:
>>  
>>> Hello all,
>>> Cmake is using by default /usr/bin/c++ to compile project.
>>> Is it a way to set it ton another compiler like g++, or gcc-color.
>>> Thanks
>>
>> CXX=g++ CC=gcc cmake
>>
> CMAKE_CXX_COMPILER is good...

Note that it is not safe to change CMAKE_CXX_COMPILER in the GUI once it
has been set.  The environment variables are the suggested way.

-Brad


More information about the CMake mailing list