aboutsummaryrefslogtreecommitdiff
path: root/CMAKE
diff options
context:
space:
mode:
authorjulie <julielangou@users.noreply.github.com>2010-12-21 02:11:49 +0000
committerjulie <julielangou@users.noreply.github.com>2010-12-21 02:11:49 +0000
commitc6db164e8dfd64b39e950d1ccf3a561ee9802a02 (patch)
tree08f7fc9a656c19f601e1c23ceda61c46f13e7030 /CMAKE
parent96a5907fbc5787b9b8e45d9acc9033af7a112718 (diff)
Fixed FindBLAS for Sun Performance Library
- Chuck Atkins (Kitware)
Diffstat (limited to 'CMAKE')
-rw-r--r--CMAKE/FindBLAS.cmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/CMAKE/FindBLAS.cmake b/CMAKE/FindBLAS.cmake
index 6d02244b..53b76dae 100644
--- a/CMAKE/FindBLAS.cmake
+++ b/CMAKE/FindBLAS.cmake
@@ -45,6 +45,7 @@
# MKL_ILP64 - Intel Math Kernel Library (emt64/ia64 + int64)
# See http://software.intel.com/en-us/intel-mkl
# PERFLIB - Oracle Performance Library (formerly Sun Performance Library)
+# SUNPERF - Oracle Performance Library (formerly Sun Performance Library)
# See http://www.oracle.com/technetwork/server-storage/solarisstudio
# SCCL - SGI's Scientific Computing Software Library
# See http://www.sgi.com/products/software/irix/scsl.html
@@ -143,7 +144,7 @@ macro( _BLAS_LOCATE_AND_TEST __BLAS_VENDOR __BLAS_LIBNAMES __BLAS_FLAGS )
)
endforeach()
- if( BLAS_${__BLAS_VENDOR}_LIBRARIES OR __BLAS_LIBNAMES STREQUAL "" )
+ if( BLAS_${__BLAS_VENDOR}_LIBRARIES OR ("${__BLAS_LIBNAMES}" STREQUAL "") )
# Check the library as Fortran
set( BLAS_${__BLAS_VENDOR}_LINKER_FLAGS "${__BLAS_FLAGS}" )
@@ -264,7 +265,7 @@ foreach( _BLAS_VENDOR ${BLAS_VENDORS} )
)
endif()
- # Intel MKL (emt64 / ia64)
+ # Intel MKL (emt64 / ia64)
elseif( _BLAS_VENDOR STREQUAL "MKL_LP64" )
message( STATUS "FindBLAS: Searching for Intel MKL (emt64/ia64)" )
if( CMAKE_Fortran_COMPILER_ID STREQUAL "Intel" )
@@ -313,9 +314,10 @@ foreach( _BLAS_VENDOR ${BLAS_VENDORS} )
_BLAS_LOCATE_AND_TEST( ${_BLAS_VENDOR} "sccl" "" )
# Sun / Oracle PerfLib
- elseif( (_BLAS_VENDOR STREQUAL "PERFLIB") )
+ elseif( (_BLAS_VENDOR STREQUAL "PERFLIB") OR
+ (_BLAS_VENDOR STREQUAL "SUNPERF") )
message( STATUS "FindBLAS: Searching for Sun PerfLib" )
- _BLAS_LOCATE_AND_TEST( ${_BLAS_VENDOR} "perflib" "" )
+ _BLAS_LOCATE_AND_TEST( ${_BLAS_VENDOR} "" "-xlic_lib=sunperf" )
else()
endif()