summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/salmon-tddft/cmakefix.patch
blob: 65ff24bdb4536b088101058a5a2410556a79bc4c (plain) (blame)
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
diff -ru spack-src.org/cmakefiles/Modules/FindBLACS.cmake spack-src/cmakefiles/Modules/FindBLACS.cmake
--- spack-src.org/cmakefiles/Modules/FindBLACS.cmake	2020-12-22 17:37:19.960178408 +0900
+++ spack-src/cmakefiles/Modules/FindBLACS.cmake	2020-12-22 17:32:55.395622085 +0900
@@ -29,7 +29,7 @@
 # ## List of vendors (BLA_VENDOR) valid in this module
 # Generic, Intel (MKL)
 
-set(_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
+set(_salmon_blacks_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
 
 # Check the language being used
 if( NOT (CMAKE_C_COMPILER_LOADED OR CMAKE_CXX_COMPILER_LOADED OR CMAKE_Fortran_COMPILER_LOADED) )
@@ -55,7 +55,7 @@
 
 # TODO: move this stuff to separate module
 
-macro(Check_Lapack_Libraries LIBRARIES _prefix _name _flags _list _blas _threads)
+macro(salmon_Check_Lapack_Libraries LIBRARIES _prefix _name _flags _list _blas _threads)
   # This macro checks for the existence of the combination of fortran libraries
   # given by _list.  If the combination is found, this macro checks (using the
   # Check_Fortran_Function_Exists macro) whether can link against that library
@@ -170,7 +170,7 @@
   if (BLA_VENDOR STREQUAL "Generic" OR
       BLA_VENDOR STREQUAL "All")
     if ( NOT BLACS_LIBRARIES )
-      check_lapack_libraries(
+      salmon_check_lapack_libraries(
         BLACS_LIBRARIES
         BLACS
         pcheevx
@@ -215,7 +215,7 @@
 
       # First try empty lapack libs
       if (NOT ${_LIBRARIES})
-        check_lapack_libraries(
+        salmon_check_lapack_libraries(
           ${_LIBRARIES}
           BLACS
           ${BLACS_mkl_SEARCH_SYMBOL}
@@ -228,7 +228,7 @@
       # Then try the search libs
       foreach (IT ${BLACS_SEARCH_LIBS})
         if (NOT ${_LIBRARIES})
-          check_lapack_libraries(
+          salmon_check_lapack_libraries(
             ${_LIBRARIES}
             BLACS
             ${BLACS_mkl_SEARCH_SYMBOL}
@@ -268,4 +268,4 @@
 endif()
 
 cmake_pop_check_state()
-set(CMAKE_FIND_LIBRARY_SUFFIXES ${_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})
+set(CMAKE_FIND_LIBRARY_SUFFIXES ${_salmon_blacks_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})
diff -ru spack-src.org/cmakefiles/Modules/FindScaLAPACK.cmake spack-src/cmakefiles/Modules/FindScaLAPACK.cmake
--- spack-src.org/cmakefiles/Modules/FindScaLAPACK.cmake	2020-12-22 17:37:19.965178229 +0900
+++ spack-src/cmakefiles/Modules/FindScaLAPACK.cmake	2020-12-22 17:33:39.365051770 +0900
@@ -29,7 +29,7 @@
 # ## List of vendors (BLA_VENDOR) valid in this module
 # Generic, Intel (MKL)
 
-set(_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
+set(_salmon_scalapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
 
 # Check the language being used
 if( NOT (CMAKE_C_COMPILER_LOADED OR CMAKE_CXX_COMPILER_LOADED OR CMAKE_Fortran_COMPILER_LOADED) )
@@ -55,7 +55,7 @@
 
 # TODO: move this stuff to separate module
 
-macro(Check_Lapack_Libraries LIBRARIES _prefix _name _flags _list _blas _threads)
+macro(salmon_Check_Lapack_Libraries LIBRARIES _prefix _name _flags _list _blas _threads)
   # This macro checks for the existence of the combination of fortran libraries
   # given by _list.  If the combination is found, this macro checks (using the
   # Check_Fortran_Function_Exists macro) whether can link against that library
@@ -161,7 +161,7 @@
   if (BLA_VENDOR STREQUAL "Generic" OR
       BLA_VENDOR STREQUAL "All")
     if ( NOT ScaLAPACK_LIBRARIES )
-      check_lapack_libraries(
+      salmon_check_lapack_libraries(
         ScaLAPACK_LIBRARIES
         ScaLAPACK
         pcheevx
@@ -202,7 +202,7 @@
 
       # First try empty lapack libs
       if (NOT ${_LIBRARIES})
-        check_lapack_libraries(
+        salmon_check_lapack_libraries(
           ${_LIBRARIES}
           ScaLAPACK
           ${ScaLAPACK_mkl_SEARCH_SYMBOL}
@@ -215,7 +215,7 @@
       # Then try the search libs
       foreach (IT ${ScaLAPACK_SEARCH_LIBS})
         if (NOT ${_LIBRARIES})
-          check_lapack_libraries(
+          salmon_check_lapack_libraries(
             ${_LIBRARIES}
             ScaLAPACK
             ${ScaLAPACK_mkl_SEARCH_SYMBOL}
@@ -255,4 +255,4 @@
 endif()
 
 cmake_pop_check_state()
-set(CMAKE_FIND_LIBRARY_SUFFIXES ${_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})
+set(CMAKE_FIND_LIBRARY_SUFFIXES ${_salmon_scalapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})