Package: openmolcas / 20.10-2

mkl_library_dir.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Index: openmolcas/CMakeLists.txt
===================================================================
--- openmolcas.orig/CMakeLists.txt
+++ openmolcas/CMakeLists.txt
@@ -1328,60 +1328,60 @@ if (LINALG STREQUAL "MKL")
   # core library
   if (PLATFORM STREQUAL "MacOS")
     find_library (LIBMKL_CORE NAMES "libmkl_core.a"
-                  PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                  PATHS ${MKL_LIBRARY_PATH})
   else ()
     find_library (LIBMKL_CORE NAMES "mkl_core"
-                  PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                  PATHS ${MKL_LIBRARY_PATH})
   endif ()
   # compiler-specific library interface
   if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
     if (PLATFORM STREQUAL "MacOS")
       find_library (LIBMKL_BLAS NAMES "libmkl_blas95_ilp64.a"
-                  PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                  PATHS ${MKL_LIBRARY_PATH})
       find_library (LIBMKL_LAPACK NAMES "libmkl_lapack95_ilp64.a"
-                  PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                  PATHS ${MKL_LIBRARY_PATH})
       find_library (LIBMKL_INTERFACE NAMES "libmkl_intel_ilp64.a"
-                  PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                  PATHS ${MKL_LIBRARY_PATH})
     else ()
     find_library (LIBMKL_INTERFACE NAMES "mkl_gf_ilp64"
-                  PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                  PATHS ${MKL_LIBRARY_PATH})
     endif ()
   elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
     find_library (LIBMKL_INTERFACE NAMES "mkl_intel_ilp64"
-                  PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                  PATHS ${MKL_LIBRARY_PATH})
   elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "PGI") # apparently PGI uses this too
     find_library (LIBMKL_INTERFACE NAMES "mkl_intel_ilp64"
-                  PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                  PATHS ${MKL_LIBRARY_PATH})
   endif ()
   # sequential/compiler-specific threading interface
   if (PLATFORM STREQUAL "MacOS")
     find_library (LIBMKL_SEQUENTIAL NAMES "libmkl_sequential.a"
-                  PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                  PATHS ${MKL_LIBRARY_PATH})
   else ()
     find_library (LIBMKL_SEQUENTIAL NAMES "mkl_sequential"
-                  PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                  PATHS ${MKL_LIBRARY_PATH})
   endif ()
   if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
     set (LIBMKL_OMP_LINK_FLAGS "${FFLAGS_GNU_OPENMP}")
     find_library (LIBMKL_THREADING NAMES "mkl_gnu_thread"
-                  PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                  PATHS ${MKL_LIBRARY_PATH})
   elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
     set (LIBMKL_OMP_LINK_FLAGS "${FFLAGS_Intel_OPENMP}")
     find_library (LIBMKL_THREADING NAMES "mkl_intel_thread"
-                  PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                  PATHS ${MKL_LIBRARY_PATH})
   endif ()
   # find scalapack/blacs for parallel lapack support
   find_library (LIBMKL_SCALAPACK NAMES "mkl_scalapack_ilp64"
-                PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                PATHS ${MKL_LIBRARY_PATH})
   if (MPI_IMPLEMENTATION STREQUAL "openmpi")
     find_library (LIBMKL_BLACS NAMES "mkl_blacs_openmpi_ilp64"
-                  PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                  PATHS ${MKL_LIBRARY_PATH})
   elseif (MPI_IMPLEMENTATION STREQUAL "impi")
     find_library (LIBMKL_BLACS NAMES "mkl_blacs_intelmpi_ilp64"
-                  PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                  PATHS ${MKL_LIBRARY_PATH})
   elseif (MPI_IMPLEMENTATION STREQUAL "mpich")
     find_library (LIBMKL_BLACS NAMES "mkl_blacs_ilp64"
-                  PATHS ${MKL_LIBRARY_PATH} NO_DEFAULT_PATH)
+                  PATHS ${MKL_LIBRARY_PATH})
   endif ()
 
   # generate actual library list with paths