summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/Intel-Fortran.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-08-21 13:54:42 (GMT)
committerBrad King <brad.king@kitware.com>2009-08-21 13:54:42 (GMT)
commit2ce6a7d0fbbd70c33592a98d204d8db7fad9a895 (patch)
treec8c015c0894c56a2ce5742a49dcf754ea96099d8 /Modules/Compiler/Intel-Fortran.cmake
parent8f84ec9ad7fe76e3767b3b3351a8b46f46b199a3 (diff)
downloadCMake-2ce6a7d0fbbd70c33592a98d204d8db7fad9a895.zip
CMake-2ce6a7d0fbbd70c33592a98d204d8db7fad9a895.tar.gz
CMake-2ce6a7d0fbbd70c33592a98d204d8db7fad9a895.tar.bz2
Split Intel compiler information files
This moves platform-independent Intel compiler flags into separate "Compiler/Intel-<lang>.cmake" modules. Platform-specific flags are left untouched.
Diffstat (limited to 'Modules/Compiler/Intel-Fortran.cmake')
-rw-r--r--Modules/Compiler/Intel-Fortran.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/Modules/Compiler/Intel-Fortran.cmake b/Modules/Compiler/Intel-Fortran.cmake
index 7f7c128..f0db1a8 100644
--- a/Modules/Compiler/Intel-Fortran.cmake
+++ b/Modules/Compiler/Intel-Fortran.cmake
@@ -1 +1,21 @@
+INCLUDE(Compiler/Intel)
+IF(XIAR)
+ SET(CMAKE_Fortran_CREATE_STATIC_LIBRARY
+ "${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")
+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_SHARED_LIBRARY_SONAME_Fortran_FLAG "-Wl,-soname,")
+
+SET(CMAKE_Fortran_FLAGS_INIT "")
+SET(CMAKE_Fortran_FLAGS_DEBUG_INIT "-g")
+SET(CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "-Os")
+SET(CMAKE_Fortran_FLAGS_RELEASE_INIT "-O3")
+SET(CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
+SET(CMAKE_Fortran_MODDIR_FLAG "-module ")
SET(CMAKE_Fortran_VERBOSE_FLAG "-v")