summaryrefslogtreecommitdiffstats
path: root/Tests/Fortran/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-11-10 15:53:36 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-11-10 15:53:36 (GMT)
commit9377e7122c950d27ce6e42deead2eeb5eb2183a2 (patch)
tree79d5a39a00a02db326560dc5cf4152c8951165d6 /Tests/Fortran/CMakeLists.txt
parentb7643589a114f8874521f12d6285157c493ab2ab (diff)
downloadCMake-9377e7122c950d27ce6e42deead2eeb5eb2183a2.zip
CMake-9377e7122c950d27ce6e42deead2eeb5eb2183a2.tar.gz
CMake-9377e7122c950d27ce6e42deead2eeb5eb2183a2.tar.bz2
ENH: put a check in for the gnu sunpro case
Diffstat (limited to 'Tests/Fortran/CMakeLists.txt')
-rw-r--r--Tests/Fortran/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/Fortran/CMakeLists.txt b/Tests/Fortran/CMakeLists.txt
index e8fb75e..8992d17 100644
--- a/Tests/Fortran/CMakeLists.txt
+++ b/Tests/Fortran/CMakeLists.txt
@@ -96,6 +96,11 @@ else()
set(CMAKE_LINK_LIBRARY_FLAG "-l")
set(CMAKE_LINK_LIBRARY_SUFFIX )
endif()
+ # gnu and sunpro do not use the same flag here...
+ if( ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU")
+ AND ("${CMAKE_Fortran_COMPILER_ID}" MATCHES "SunPro"))
+ set(CMAKE_SHARED_LIBRARY_C_FLAGS "-KPIC" )
+ endif()
endif()