2009-09-01 21:55:13 +04:00
|
|
|
INCLUDE(Platform/Linux-Intel)
|
|
|
|
IF(XIAR)
|
2009-10-02 21:52:13 +04:00
|
|
|
# INTERPROCEDURAL_OPTIMIZATION
|
|
|
|
SET(CMAKE_Fortran_COMPILE_OPTIONS_IPO -ipo)
|
|
|
|
SET(CMAKE_Fortran_CREATE_STATIC_LIBRARY_IPO
|
2009-09-01 21:55:13 +04:00
|
|
|
"${XIAR} cr <TARGET> <LINK_FLAGS> <OBJECTS> "
|
|
|
|
"${XIAR} -s <TARGET> ")
|
|
|
|
ENDIF(XIAR)
|
|
|
|
|
|
|
|
SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-fPIC")
|
2009-10-27 17:50:43 +03:00
|
|
|
SET(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-shared -i_dynamic -nofor_main")
|
2009-09-01 21:55:13 +04:00
|
|
|
SET(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-i_dynamic")
|
|
|
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG "-Wl,-rpath,")
|
|
|
|
SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG_SEP ":")
|
2006-04-20 18:23:17 +04:00
|
|
|
SET(CMAKE_DL_LIBS "dl")
|