summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-12-30 21:11:38 (GMT)
committerBrad King <brad.king@kitware.com>2007-12-30 21:11:38 (GMT)
commitb2e8c07af8bca0122d4dfe62c8341dc58c0da2fa (patch)
treef6604b080cf5707dfb3998c276b72445b57659fe /Modules/Platform
parentcd8a2bbab69af0b36076a7acb0af85dedc4f0f1c (diff)
downloadCMake-b2e8c07af8bca0122d4dfe62c8341dc58c0da2fa.zip
CMake-b2e8c07af8bca0122d4dfe62c8341dc58c0da2fa.tar.gz
CMake-b2e8c07af8bca0122d4dfe62c8341dc58c0da2fa.tar.bz2
ENH: Implemented Fortran module output directory and search path flags.
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Linux-GNU-Fortran.cmake1
-rw-r--r--Modules/Platform/Linux-SunPro-Fortran.cmake2
-rw-r--r--Modules/Platform/Linux-ifort.cmake1
3 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Platform/Linux-GNU-Fortran.cmake b/Modules/Platform/Linux-GNU-Fortran.cmake
new file mode 100644
index 0000000..ba13a43
--- /dev/null
+++ b/Modules/Platform/Linux-GNU-Fortran.cmake
@@ -0,0 +1 @@
+SET(CMAKE_Fortran_MODDIR_FLAG -J)
diff --git a/Modules/Platform/Linux-SunPro-Fortran.cmake b/Modules/Platform/Linux-SunPro-Fortran.cmake
index 16ac62c..6994839 100644
--- a/Modules/Platform/Linux-SunPro-Fortran.cmake
+++ b/Modules/Platform/Linux-SunPro-Fortran.cmake
@@ -12,3 +12,5 @@ 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")
+SET(CMAKE_Fortran_MODDIR_FLAG "-moddir=")
+SET(CMAKE_Fortran_MODPATH_FLAG "-M")
diff --git a/Modules/Platform/Linux-ifort.cmake b/Modules/Platform/Linux-ifort.cmake
index 04dcd62..dc46dd5 100644
--- a/Modules/Platform/Linux-ifort.cmake
+++ b/Modules/Platform/Linux-ifort.cmake
@@ -5,3 +5,4 @@ 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_MODDIR_FLAG "-module ")