iucar / rpms / root

Forked from rpms/root 2 years ago
Clone
Blob Blame History Raw
From 2f3c530cd8c8b9adc0303e2ae24a069f671aee1c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?I=C3=B1aki=20=C3=9Acar?= <iucar@fedoraproject.org>
Date: Sun, 16 Aug 2020 13:46:21 +0200
Subject: [PATCH] add flexiblas detection

---
 cmake/modules/SearchInstalledSoftware.cmake | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/cmake/modules/SearchInstalledSoftware.cmake b/cmake/modules/SearchInstalledSoftware.cmake
index f1c6ee27..12aa822f 100644
--- a/cmake/modules/SearchInstalledSoftware.cmake
+++ b/cmake/modules/SearchInstalledSoftware.cmake
@@ -1496,7 +1496,13 @@ endif()
 if(tmva)
   if(tmva-cpu AND imt)
     message(STATUS "Looking for BLAS for optional parts of TMVA")
-    find_package(BLAS)
+    pkg_check_modules(FLEXIBLAS flexiblas)
+    set(BLAS_FOUND ${FLEXIBLAS_FOUND})
+    set(BLAS_LIBRARIES "${FLEXIBLAS_LIBRARIES}")
+    set(BLAS_LINKER_FLAGS)
+    if (NOT BLAS_FOUND)
+      find_package(BLAS)
+    endif()
     if(NOT BLAS_FOUND)
       if (GSL_FOUND)
         message(STATUS "Using GSL CBLAS for optional parts of TMVA")
-- 
2.25.2