diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-08-06 18:51:41 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-08-06 18:51:41 (GMT) |
commit | 9655299f08b5aa04ea63193ebecfa08efae7ca3d (patch) | |
tree | 69f0415d9b8414cee074b25d80c4520a6feb6086 /Modules/Platform | |
parent | 0220a85e3337f87c3b34c2d49d85b6ace127ea50 (diff) | |
download | CMake-9655299f08b5aa04ea63193ebecfa08efae7ca3d.zip CMake-9655299f08b5aa04ea63193ebecfa08efae7ca3d.tar.gz CMake-9655299f08b5aa04ea63193ebecfa08efae7ca3d.tar.bz2 |
ENH: initial fortran support
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/CYGWIN-g77.cmake | 5 | ||||
-rw-r--r-- | Modules/Platform/g77.cmake | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Modules/Platform/CYGWIN-g77.cmake b/Modules/Platform/CYGWIN-g77.cmake new file mode 100644 index 0000000..fd5329e --- /dev/null +++ b/Modules/Platform/CYGWIN-g77.cmake @@ -0,0 +1,5 @@ +SET(CMAKE_SHARED_LIBRARY_PREFIX "lib") +SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dll") +SET(CMAKE_SHARED_LIBRARY_FORTRAN_FLAGS "") +SET(CMAKE_SHARED_LIBRARY_FORTRAN_FLAGS "") +INCLUDE(${CMAKE_ROOT}/Modules/Platform/g77.cmake) diff --git a/Modules/Platform/g77.cmake b/Modules/Platform/g77.cmake new file mode 100644 index 0000000..a720f4f --- /dev/null +++ b/Modules/Platform/g77.cmake @@ -0,0 +1,7 @@ +IF(CMAKE_COMPILER_IS_GNUG77) + SET (CMAKE_FORTRAN_FLAGS_INIT "") + SET (CMAKE_FORTRAN_FLAGS_DEBUG_INIT "-g") + SET (CMAKE_FORTRAN_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG") + SET (CMAKE_FORTRAN_FLAGS_RELEASE_INIT "-O3 -DNDEBUG") + SET (CMAKE_FORTRAN_FLAGS_RELWITHDEBINFO_INIT "-O2 -g") +ENDIF(CMAKE_COMPILER_IS_GNUG77) |