From 53d923fe341f7b3122616b9da80b08a09f3df771 Mon Sep 17 00:00:00 2001
From: Tim Davis <DrTimothyAldenDavis@gmail.com>
Date: Sun, 22 Oct 2023 16:40:34 -0500
Subject: [PATCH] look for BLIS/FLAME

---
 SuiteSparse_config/cmake_modules/SuiteSparseLAPACK.cmake | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/SuiteSparse_config/cmake_modules/SuiteSparseLAPACK.cmake b/SuiteSparse_config/cmake_modules/SuiteSparseLAPACK.cmake
index 27ff73cadd..2ffe536241 100644
--- a/SuiteSparse_config/cmake_modules/SuiteSparseLAPACK.cmake
+++ b/SuiteSparse_config/cmake_modules/SuiteSparseLAPACK.cmake
@@ -21,17 +21,12 @@
 cmake_minimum_required ( VERSION 3.22 )
 
 if ( BLA_VENDOR STREQUAL "FLAME" )
-    # FLAME has the BLAS but not LAPACK
 
-    set ( BLA_VENDOR "Generic" )
-    message ( STATUS "Looking for generic LAPACK to use with BLIS/FLAME BLAS" )
-
-    # look for the generic dynamic LAPACK library (usually liblagraph.so)
     find_library ( LAPACK_LIBRARY
-        NAMES lapack
+        NAMES flame
         PATH_SUFFIXES lib build )
 
-    # look for the static LAPACK library (usually liblagraph.a)
+    # look for the static LAPACK library (usually liblapack.a)
     if ( MSVC )
         set ( STATIC_SUFFIX .lib )
     else ( )