[CMake] Cmake with Cray Fortran

Tim Gallagher tim.gallagher at gatech.edu
Tue Mar 8 14:36:55 EST 2011


Brad,

Thanks for your input -- setting it as Catamount was the trick. 

Is there a way to use a toolchain file with ccmake? It throws a warning saying it doesn't use the CMAKE_TOOLCHAIN_FILE. If I do it with cmake, everything is fine. 

Thanks again,

Tim

----- Original Message -----
From: "Brad King" <brad.king at kitware.com>
To: "Tim Gallagher" <tim.gallagher at gatech.edu>
Cc: gtg085x at mail.gatech.edu, cmake at cmake.org
Sent: Tuesday, March 8, 2011 8:28:08 AM
Subject: Re: [CMake] Cmake with Cray Fortran

On 03/07/2011 09:54 PM, Tim Gallagher wrote:
> How can I get it to drop the -rdynamic option?

That option appears because the host system name is probably Linux on which
that option is supported.  You need to set up a cross-compiling toolchain
file that sets the correct name of the target platform:

  http://www.cmake.org/Wiki/CMake_Cross_Compiling

CMake comes with a "Catamount" platform file that should work for newer Cray
machines too.  Set CMAKE_SYSTEM_NAME to "Catamount" in your toolchain file
to use it.

-Brad


More information about the CMake mailing list