From 9377e7122c950d27ce6e42deead2eeb5eb2183a2 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 10 Nov 2008 10:53:36 -0500 Subject: [PATCH] ENH: put a check in for the gnu sunpro case --- Tests/Fortran/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tests/Fortran/CMakeLists.txt b/Tests/Fortran/CMakeLists.txt index e8fb75ee7..8992d17ff 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()