summaryrefslogtreecommitdiffstats
path: root/Modules/FindLAPACK.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-07-29 12:41:02 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-07-29 12:41:13 (GMT)
commitc2dd240f0072d3f0aa36c33507ad52d2d2d64980 (patch)
tree6181584fa370aa2d141ff33a36ea02802ee19f88 /Modules/FindLAPACK.cmake
parent272bbda602138ca3a1420e77ce9e342315489b74 (diff)
parent069a5c3188e76aa26a22bbf1ec9d27a803813124 (diff)
downloadCMake-c2dd240f0072d3f0aa36c33507ad52d2d2d64980.zip
CMake-c2dd240f0072d3f0aa36c33507ad52d2d2d64980.tar.gz
CMake-c2dd240f0072d3f0aa36c33507ad52d2d2d64980.tar.bz2
Merge topic 'SCS_mp'
069a5c3188 FindLAPACK: SCSL also has LAPACK routines dbcc5eaa05 FindBLAS: Update SCSL library Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6402
Diffstat (limited to 'Modules/FindLAPACK.cmake')
-rw-r--r--Modules/FindLAPACK.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/Modules/FindLAPACK.cmake b/Modules/FindLAPACK.cmake
index d70453b..f36acfd 100644
--- a/Modules/FindLAPACK.cmake
+++ b/Modules/FindLAPACK.cmake
@@ -491,6 +491,30 @@ if(NOT LAPACK_NOT_FOUND_MESSAGE)
)
endif()
+ # LAPACK in SCSL library? (SGI/Cray Scientific Library)
+ if(NOT LAPACK_LIBRARIES
+ AND (BLA_VENDOR MATCHES "SCSL" OR BLA_VENDOR STREQUAL "All"))
+ set(_lapack_scsl_lib "scs")
+
+ # Check for OpenMP support, VIA BLA_VENDOR of scs_mp
+ if(BLA_VENDOR MATCHES "_mp")
+ set(_lapack_scsl_lib "${_lapack_scsl_lib}_mp")
+ endif()
+
+ check_lapack_libraries(
+ LAPACK_LIBRARIES
+ LAPACK
+ cheev
+ ""
+ "${_lapack_scsl_lib}"
+ ""
+ ""
+ ""
+ "${BLAS_LIBRARIES}"
+ )
+ unset(_lapack_scsl_lib)
+ endif()
+
# BLAS in acml library?
if(BLA_VENDOR MATCHES "ACML" OR BLA_VENDOR STREQUAL "All")
if(BLAS_LIBRARIES MATCHES ".+acml.+")