[CMake] compiling cmake on aix 5.1 and 5.3
Bill Hoffman
bill.hoffman at kitware.com
Fri Mar 28 09:21:05 EDT 2008
Joachim Geiger wrote:
> Hello Bill,
> I tried to do an experimental-make for the aix-5.3-system (xlf version
> 8) by
> 1. checking out a new copy of the cvs-cmake (2.7)
> 2. use the cmake that I have running (2.4.8) to configure the cvs-cmake
> in the source directory by
> > cmake -DCMAKE_Fortran_COMPILER=/usr/bin/xlf .
> which gives me the /usr/bin/f95 in the CMakeCache.txt but with the
> variable CMAKE_Fortran_COMPILER_FULLPATH.
> 3. cleaned everything and did a new checkout to configure now with
> > cmake -DCMAKE_Fortran_COMPILER_FULLPATH=/usr/bin/xlf .
> wich gives me the right compiler in CMakeCache.txt.
> 4. run "make Experimental"
> the fortran test failed again, but a check in the written xml-File
> showed that not xlf was used but again f95. Checked in the
> Tests/Fortran/CMakeCache.txt to see that there the variable is named
> CMAKE_Fortran_COMPILER which indeed has /usr/bin/f95.
>
> How do I make xlf to be THE FORTRAN-COMPILER to be used?
> Best regards,
> Joachim
>
> P.S.: the experimental-make did not yet show-up on the dashboard.
>
Try this
#check out a fresh CMake CVS
cd CMake
export FC=xlf
export CC=xlc
export CXX=xlC
mkdir build
cd build
cmake ..
make Experimental
That should work, if you set FC, CC, and CXX then the tests will use
those compilers.
-Bill
More information about the CMake
mailing list