[CMake] CMAKE_CXX_COMPILER: problem setting
Bill Hoffman
bill.hoffman at kitware.com
Sat Nov 10 08:59:47 EST 2007
Steven Van Ingelgem wrote:
> Hi,
>
>
> I tried today on a Mac:
> ccmake .
> & change there the CMAKE_CXX_COMPILER setting from /usr/bin/c++ -> /usr/bin/g++
>
> but it doesn't get saved inside the CMakeCache, and everything is
> still being compiled with c++ instead of g++
>
> What can I do to fix this or is this an issue in CMake?
>
Once the compiler is picked, you can not change it. c++ and g++ should
be the same thing on the Mac. If you want g++, you can do this:
export CXX=g++
ccmake .
But, you have to start with a clean build tree.
-Bill
More information about the CMake
mailing list