MantisBT - CMake
View Issue Details
0005645CMakeModulespublic2007-09-03 07:312007-12-17 21:29
Wim Van Hoydonck 
 
normalminoralways
closedfixed 
 
 
0005645: Linux-ifort.cmake SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-KPIC") does not work with ifort version 10
In file cmake/Modules/Platform/Linux-ifort.cmake, the second line sets
SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-KPIC")

This doesn't work for intel fortran compiler version 10. (ifort
(IFORT) 10.0 20070426) since the option '-K' is not supported any
more:

ifort: command line remark #10148: option '-K' not supported


Could that second line be changed from:

SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-KPIC")

to

SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-fPIC")

which AFAIK works for all versions prior to and including version 10 of the intel fortran compiler?

Greetings,

Wim
No tags attached.
Issue History
2007-09-03 07:31Wim Van HoydonckNew Issue
2007-12-17 21:29Bill HoffmanStatusnew => closed
2007-12-17 21:29Bill HoffmanResolutionopen => fixed

There are no notes attached to this issue.