summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Linux-SunPro-Fortran.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/Linux-SunPro-Fortran.cmake')
-rw-r--r--Modules/Platform/Linux-SunPro-Fortran.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/Platform/Linux-SunPro-Fortran.cmake b/Modules/Platform/Linux-SunPro-Fortran.cmake
new file mode 100644
index 0000000..16ac62c
--- /dev/null
+++ b/Modules/Platform/Linux-SunPro-Fortran.cmake
@@ -0,0 +1,14 @@
+# Linux sun studio fortran options
+SET(CMAKE_DL_LIBS "dl")
+SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-KPIC")
+SET(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-G")
+SET(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "")
+SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG "-R")
+SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG_SEP ":")
+SET(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-h")
+
+SET(CMAKE_Fortran_FLAGS_INIT "")
+SET(CMAKE_Fortran_FLAGS_DEBUG_INIT "-g")
+SET(CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "-xO2 -xspace -DNDEBUG")
+SET(CMAKE_Fortran_FLAGS_RELEASE_INIT "-xO3 -DNDEBUG")
+SET(CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "-g -xO2")