Package: openmolcas / 20.10-2

openblas_hardcode_includedir.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Index: openmolcas/CMakeLists.txt
===================================================================
--- openmolcas.orig/CMakeLists.txt
+++ openmolcas/CMakeLists.txt
@@ -1475,16 +1475,16 @@ if (LINALG STREQUAL "OpenBLAS")
     # changed since the last time we defined it.
     unset (LIBOPENBLAS CACHE)
     # check if the configuration header is available
-    set (OPENBLAS_CONFIG "${OPENBLASROOT}/include/openblas_config.h")
+    set (OPENBLAS_CONFIG "${OPENBLASROOT}/openblas_config.h")
     if (NOT EXISTS ${OPENBLAS_CONFIG})
       # for system-wide OpenBLAS installations the config path might be different
       # so try with an alternative path
-      set (OPENBLAS_CONFIG "${OPENBLASROOT}/include/openblas/openblas_config.h")
+      set (OPENBLAS_CONFIG "${OPENBLASROOT}/openblas/openblas_config.h")
     endif ()
     if (NOT EXISTS ${OPENBLAS_CONFIG})
       message (FATAL_ERROR
                "Could not find OpenBLAS config header in: ${OPENBLASROOT} "
-               "(tried ${OPENBLASROOT}/include/openblas_config.h and "
+               "(tried ${OPENBLASROOT}/openblas_config.h and "
                "please check if the OPENBLASROOT variable points to a "
                "valid OpenBLAS installation directory.")
     endif ()
@@ -1504,10 +1504,9 @@ if (LINALG STREQUAL "OpenBLAS")
 
   # search for the OpenBLAS library
   find_library (LIBOPENBLAS
-    NAMES openblas
+    NAMES openblas64
     PATHS ${OPENBLASROOT}
-    PATH_SUFFIXES lib
-    NO_DEFAULT_PATH
+    PATH_SUFFIXES openblas64-openmp
   )
 
   if (NOT LIBOPENBLAS)