[CMake] Setting the compiler

Amitha Perera perera at cs.rpi.edu
Fri Jul 27 18:12:08 EDT 2007


On Fri 27 Jul 2007, Juan Sanchez wrote:
> Requiring an environment variable is  an issue that would cause someone
> to complain.

For what it's worth, you only need to set the environment variable for
the very first run in the build tree.  After that, CMake will cache
all the compiler settings (paths, options, etc), and will reuse them.

Something like:

First time:
  mkdir bld_32bit
  cd bld_32bit
  export CXX="cpp32"
  ccmake ../src
  make

After that:
  cd bld_32bit
  make



Amitha.


More information about the CMake mailing list