[Cmake] RE: Cmake digest, Vol 1 #347 - 2 msgs

Brad King brad.king at kitware.com
Thu Feb 6 20:15:55 EST 2003


> You set the environment variables CC and CXX
> CXX = name of cxx compiler
> CC = name of c compiler.

Note that these variables are used to initialize the compiler setting on
the FIRST run of CMake for a build tree.  Once the first run is done,
these variables have no effect.  Instead, the compiler can be changed by
changing the CMAKE_CXX_COMPILER and CMAKE_C_COMPILER cache entries.  Note
that the .o files may have to be removed manually because no dependency on
the compiler setting is generated.  Changing the compiler in this way is
not recommended.  Creating a new build tree with the environment set as
described above is preferred.

-Brad




More information about the CMake mailing list