From 26a998c0d79fadfbbbd74f3683c46ee1b0f4bbac Mon Sep 17 00:00:00 2001
From: Valentin Seitz <valentin.seitz@tum.de>
Date: Sun, 24 Sep 2023 10:16:37 +0200
Subject: [PATCH] addd lapack to requirements to make PIMDRGMRESEV work

---
 CMakeLists.txt           | 6 ++++++
 cmake/PIMConfig.cmake.in | 3 +++
 2 files changed, 9 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7721bdc..9f35651 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -104,8 +104,14 @@ if (BLAS_FOUND)
   message(STATUS "Use BLAS_LIBRARIES = ${BLAS_LIBRARIES}")
 endif()
 
+find_package(LAPACK REQUIRED)
+if (LAPACK_FOUND)
+  message(STATUS "Use LAPACK_LIBRARIES = ${LAPACK_LIBRARIES}")
+endif()
+
 
 target_link_libraries(PIM-Library PRIVATE BLAS::BLAS)
+target_link_libraries(PIM-Library PRIVATE LAPACK::LAPACK)
 #--------------------------------------------------------------------
 
 #--------------------------------------------------------------------
diff --git a/cmake/PIMConfig.cmake.in b/cmake/PIMConfig.cmake.in
index 1731250..5cca492 100755
--- a/cmake/PIMConfig.cmake.in
+++ b/cmake/PIMConfig.cmake.in
@@ -16,4 +16,7 @@ if(NOT WIN32)
   if(NOT TARGET BLAS::BLAS)
     find_package(BLAS REQUIRED QUIET)
   endif()
+  if(NOT TARGET LAPACK::LAPACK)
+    find_package(LAPACK REQUIRED QUIET)
+  endif()
 endif()
-- 
GitLab