Browse Source

ENH: put a check in for the gnu sunpro case

Bill Hoffman 17 years ago
parent
commit
9377e7122c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Tests/Fortran/CMakeLists.txt

+ 5 - 0
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()