diff options
author | Brad King <brad.king@kitware.com> | 2007-12-30 21:11:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-12-30 21:11:38 (GMT) |
commit | b2e8c07af8bca0122d4dfe62c8341dc58c0da2fa (patch) | |
tree | f6604b080cf5707dfb3998c276b72445b57659fe /Modules/Platform | |
parent | cd8a2bbab69af0b36076a7acb0af85dedc4f0f1c (diff) | |
download | CMake-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.cmake | 1 | ||||
-rw-r--r-- | Modules/Platform/Linux-SunPro-Fortran.cmake | 2 | ||||
-rw-r--r-- | Modules/Platform/Linux-ifort.cmake | 1 |
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 ") |