Talk:CmakeCrayXt3: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(-target argument)
 
No edit summary
 
Line 24: Line 24:


What do you think?
What do you think?
--[[User:Sly|sly]] 14:25, 7 August 2008 (EDT)

Latest revision as of 18:25, 7 August 2008

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)