From 203bae6d0bad99a2ad8e6d966a0a4ee3350f5f8a Mon Sep 17 00:00:00 2001
From: Florent Pruvost <florent.pruvost@inria.fr>
Date: Wed, 11 Jul 2018 15:27:02 +0200
Subject: [PATCH] add a check on the function LASCL

---
 modules/find/FindLAPACKE.cmake | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/find/FindLAPACKE.cmake b/modules/find/FindLAPACKE.cmake
index a024407..e2b448f 100644
--- a/modules/find/FindLAPACKE.cmake
+++ b/modules/find/FindLAPACKE.cmake
@@ -435,6 +435,9 @@ if (LAPACK_FOUND)
       check_function_exists(LAPACKE_dlatms_work LAPACKE_WORKS)
     endif()
     mark_as_advanced(LAPACKE_WORKS)
+    unset(LAPACKE_WITH_LASCL CACHE)
+    check_function_exists(LAPACKE_dlascl LAPACKE_WITH_LASCL)
+    mark_as_advanced(LAPACKE_WITH_LASCL)
 
     if(LAPACKE_WORKS)
       # save link with dependencies
-- 
GitLab