diff options
author | Brad King <brad.king@kitware.com> | 2010-12-16 18:59:52 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2010-12-16 18:59:52 (GMT) |
commit | 72163de0a58d3b8bcdf95c8861fe83b2f699f709 (patch) | |
tree | c685d814db45c07240a68f489dec355594e6824e /Modules/Platform | |
parent | 2e594e4adb7df47c1538ef4ba2ffa43b64e2e9f6 (diff) | |
parent | 09d1c1080def2b060397469240f184b3fa5358d9 (diff) | |
download | CMake-72163de0a58d3b8bcdf95c8861fe83b2f699f709.zip CMake-72163de0a58d3b8bcdf95c8861fe83b2f699f709.tar.gz CMake-72163de0a58d3b8bcdf95c8861fe83b2f699f709.tar.bz2 |
Merge topic 'NAG-Fortran'
09d1c10 FortranCInterface: Recognize NAG Fortran module symbols
af2ad90 Add NAG Fortran compiler information files
24cc3d4 Recognize the NAG Fortran compiler
83892c4 Allow Fortran platform files to set empty values
fe3f878 Detect object files in implicit link information
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Darwin-NAG-Fortran.cmake | 5 | ||||
-rw-r--r-- | Modules/Platform/Linux-NAG-Fortran.cmake | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin-NAG-Fortran.cmake b/Modules/Platform/Darwin-NAG-Fortran.cmake new file mode 100644 index 0000000..933f9e1 --- /dev/null +++ b/Modules/Platform/Darwin-NAG-Fortran.cmake @@ -0,0 +1,5 @@ +set(CMAKE_Fortran_VERBOSE_FLAG "-Wl,-v") # Runs gcc under the hood. + +# Need -fpp explicitly on case-insensitive filesystem. +set(CMAKE_Fortran_COMPILE_OBJECT + "<CMAKE_Fortran_COMPILER> -fpp -o <OBJECT> <DEFINES> <FLAGS> -c <SOURCE>") diff --git a/Modules/Platform/Linux-NAG-Fortran.cmake b/Modules/Platform/Linux-NAG-Fortran.cmake new file mode 100644 index 0000000..353bae6 --- /dev/null +++ b/Modules/Platform/Linux-NAG-Fortran.cmake @@ -0,0 +1,10 @@ +set(CMAKE_Fortran_VERBOSE_FLAG "-Wl,-v") # Runs gcc under the hood. + +# Need one "-Wl," level to send flag through to gcc. +# Use "-Xlinker" to get through gcc to real linker. +set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-Wl,-shared") +set(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG "-Wl,-Xlinker,-rpath,-Xlinker,") +set(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG_SEP ":") +set(CMAKE_SHARED_LIBRARY_RPATH_LINK_Fortran_FLAG "-Wl,-Xlinker,-rpath-link,-Xlinker,") +set(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-Wl,-Xlinker,-soname,-Xlinker,") +set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-Wl,-rdynamic") |