ENH: put a check in for the gnu sunpro case

This commit is contained in:
Bill Hoffman 2008-11-10 10:53:36 -05:00
parent b7643589a1
commit 9377e7122c
1 changed files with 5 additions and 0 deletions

View File

@ -96,6 +96,11 @@ else()
set(CMAKE_LINK_LIBRARY_FLAG "-l") set(CMAKE_LINK_LIBRARY_FLAG "-l")
set(CMAKE_LINK_LIBRARY_SUFFIX ) set(CMAKE_LINK_LIBRARY_SUFFIX )
endif() 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() endif()