# Fix LAPACK detection with CMake
# IT4Innovations
# JK 2022
--- dakota-6.15.0-public-src-cli-ORIG/cmake/DakotaFindSystemTPLs.cmake	2022-01-27 10:41:04.173529574 +0100
+++ dakota-6.15.0-public-src-cli/cmake/DakotaFindSystemTPLs.cmake	2022-01-27 10:45:08.772867478 +0100
@@ -64,9 +64,9 @@
       if(NOT BLAS_LIBS OR NOT LAPACK_LIBS)
 	# if not a system blas and lapack, then look for a cmake built LAPACK
 	# with find_package
-	find_package(LAPACK REQUIRED NO_MODULE)
-	set(BLAS_LIBS blas)
-	set(LAPACK_LIBS lapack)
+	find_package(LAPACK REQUIRED MODULE)
+	set(BLAS_LIBS ${BLAS_LIBRARIES})
+	set(LAPACK_LIBS ${LAPACK_LIBRARIES})
       endif()
     endif()
   endif()
