diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-11-11 19:03:14 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-11-11 19:03:14 (GMT) |
commit | 9e773f5376aff0eaaaaff206320ec0c3200e8025 (patch) | |
tree | b05959862ac1a74889537f1f33a2eef9bf758667 /Tests/Fortran | |
parent | 619151d0143e94c06b8dbc5a7ea8fdbc9e6cc22f (diff) | |
download | CMake-9e773f5376aff0eaaaaff206320ec0c3200e8025.zip CMake-9e773f5376aff0eaaaaff206320ec0c3200e8025.tar.gz CMake-9e773f5376aff0eaaaaff206320ec0c3200e8025.tar.bz2 |
ENH: fix gcc sun fortran mix
Diffstat (limited to 'Tests/Fortran')
-rw-r--r-- | Tests/Fortran/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Tests/Fortran/CMakeLists.txt b/Tests/Fortran/CMakeLists.txt index 8992d17..e8515c4 100644 --- a/Tests/Fortran/CMakeLists.txt +++ b/Tests/Fortran/CMakeLists.txt @@ -96,10 +96,13 @@ else() set(CMAKE_LINK_LIBRARY_FLAG "-l") set(CMAKE_LINK_LIBRARY_SUFFIX ) endif() - # gnu and sunpro do not use the same flag here... + # gnu and sunpro do not use the same flags here... + # however if LDFLAGS is used to set -m64 it causes odd stuf + # with the fortran build if( ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU") AND ("${CMAKE_Fortran_COMPILER_ID}" MATCHES "SunPro")) - set(CMAKE_SHARED_LIBRARY_C_FLAGS "-KPIC" ) + set(CMAKE_EXE_LINKER_FLAGS "") + set(CMAKE_Fortran_FLAGS "") endif() endif() |