Talk:CmakeCrayXt3

From KitwarePublic
Jump to navigationJump to search

Tried to extend the following settings

set(CMAKE_C_COMPILER   cc -target=catamount)
set(CMAKE_CXX_COMPILER CC -target=catamount)

to Fortran as

set(CMAKE_Fortran_COMPILER ftn -target=catamount)

and got error during compiler identification stage (inside cmake-2.7/Modules/CMakeFortranInformation.cmake from CVS HEAD as of 14:22, 6 August 2008 (EDT) ). Well, in particular, I am not sure if it is correct to include arguments while setting CMAKE_X_COMPILER executables (although with C and CXX things work fine as expected).

Perhaps a better solution would be:

set(CMAKE_C_COMPILER   cc)
set(CMAKE_CXX_COMPILER CC)
set(CMAKE_Fortran_COMPILER ftn)
add_definitions("-target=catamount")

What do you think?

--sly 14:25, 7 August 2008 (EDT)