[CMake] Where to change default link line on Cmake
Brad King
brad.king at kitware.com
Tue May 4 18:00:57 EDT 2010
Rene Salmon wrote:
> Ahhh.. That is the problem cmake is not detecting the correct compiler ID.
>
> hpci6001t(salmr0)139:rm -rf build/
> hpci6001t(salmr0)140:mkdir build
> hpci6001t(salmr0)141:cd build
> /gpfs01/vol0/salmr0/mspain/fd/build
> hpci6001t(salmr0)142:cmake ..
> -- The C compiler identification is GNU
> -- The Fortran compiler identification is GNU
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
Set environment variables to choose your compiler:
$ rm -rf build
$ mkdir build
$ cd build
$ export CC=xlc CXX=xlC FC=xlf
$ cmake ..
-Brad
More information about the CMake
mailing list