diff options
author | Brad King <brad.king@kitware.com> | 2009-12-04 14:20:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-12-04 14:20:24 (GMT) |
commit | e2083979767f08e0644030c890cd7de971bbd77a (patch) | |
tree | ec6bb895c5e9e112f114950ff1fecc004e7eeec4 /Modules/Platform/Linux-Intel-Fortran.cmake | |
parent | 77ded39645ac09a190fe058bf796978bfe2327ba (diff) | |
download | CMake-e2083979767f08e0644030c890cd7de971bbd77a.zip CMake-e2083979767f08e0644030c890cd7de971bbd77a.tar.gz CMake-e2083979767f08e0644030c890cd7de971bbd77a.tar.bz2 |
Consolidate Linux Intel compiler information
We consolidate duplicate code from Platform/Linux-Intel-<lang>.cmake
files into a macro defined in Platform/Linux-Intel.cmake.
Diffstat (limited to 'Modules/Platform/Linux-Intel-Fortran.cmake')
-rw-r--r-- | Modules/Platform/Linux-Intel-Fortran.cmake | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/Modules/Platform/Linux-Intel-Fortran.cmake b/Modules/Platform/Linux-Intel-Fortran.cmake index 60925c4..342b5c2 100644 --- a/Modules/Platform/Linux-Intel-Fortran.cmake +++ b/Modules/Platform/Linux-Intel-Fortran.cmake @@ -1,15 +1,4 @@ INCLUDE(Platform/Linux-Intel) -IF(XIAR) - # INTERPROCEDURAL_OPTIMIZATION - SET(CMAKE_Fortran_COMPILE_OPTIONS_IPO -ipo) - SET(CMAKE_Fortran_CREATE_STATIC_LIBRARY_IPO - "${XIAR} cr <TARGET> <LINK_FLAGS> <OBJECTS> " - "${XIAR} -s <TARGET> ") -ENDIF(XIAR) - -SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-fPIC") -SET(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-shared -i_dynamic -nofor_main") -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 ":") -SET(CMAKE_DL_LIBS "dl") +__linux_compiler_intel(Fortran) +set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS} -i_dynamic -nofor_main") +set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-i_dynamic") |