aboutsummaryrefslogtreecommitdiff
path: root/ports/armadillo/add-disable-find-package.patch
blob: 65197e2025b9d506e440b4f66ef3278727414d64 (plain)
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
diff --git a/cmake_aux/Modules/ARMA_FindACML.cmake b/cmake_aux/Modules/ARMA_FindACML.cmake
index 7d0655e..fa435ff 100644
--- a/cmake_aux/Modules/ARMA_FindACML.cmake
+++ b/cmake_aux/Modules/ARMA_FindACML.cmake
@@ -5,6 +5,11 @@
 # also defined, but not for general use are
 #  ACML_LIBRARY, where to find the ACML library.
 
+if(CMAKE_DISABLE_FIND_PACKAGE_ACML)
+  set(ACML_FOUND "NO")
+  return()
+endif()
+
 SET(ACML_NAMES ${ACML_NAMES} acml)
 FIND_LIBRARY(ACML_LIBRARY
   NAMES ${ACML_NAMES}
diff --git a/cmake_aux/Modules/ARMA_FindACMLMP.cmake b/cmake_aux/Modules/ARMA_FindACMLMP.cmake
index 3390179..ead7b1e 100644
--- a/cmake_aux/Modules/ARMA_FindACMLMP.cmake
+++ b/cmake_aux/Modules/ARMA_FindACMLMP.cmake
@@ -5,6 +5,11 @@
 # also defined, but not for general use are
 #  ACMLMP_LIBRARY, where to find the ACMLMP library.
 
+if(CMAKE_DISABLE_FIND_PACKAGE_ACMLMP)
+  set(ACMLMP_FOUND NO)
+  return()
+endif()
+
 SET(ACMLMP_NAMES ${ACMLMP_NAMES} acml_mp)
 FIND_LIBRARY(ACMLMP_LIBRARY
   NAMES ${ACMLMP_NAMES}
diff --git a/cmake_aux/Modules/ARMA_FindARPACK.cmake b/cmake_aux/Modules/ARMA_FindARPACK.cmake
index 1a709ad..3029c25 100644
--- a/cmake_aux/Modules/ARMA_FindARPACK.cmake
+++ b/cmake_aux/Modules/ARMA_FindARPACK.cmake
@@ -4,6 +4,10 @@
 #  ARPACK_FOUND        - system has ARPACK
 #  ARPACK_LIBRARY      - Link this to use ARPACK
 
+if(CMAKE_DISABLE_FIND_PACKAGE_ARPACK)
+  set(ARPACK_FOUND NO)
+  return()
+endif()
 
 find_library(ARPACK_LIBRARY
   NAMES arpack
diff --git a/cmake_aux/Modules/ARMA_FindATLAS.cmake b/cmake_aux/Modules/ARMA_FindATLAS.cmake
index 491a361..e40a0ff 100644
--- a/cmake_aux/Modules/ARMA_FindATLAS.cmake
+++ b/cmake_aux/Modules/ARMA_FindATLAS.cmake
@@ -1,3 +1,8 @@
+if(CMAKE_DISABLE_FIND_PACKAGE_ATLAS)
+  set(ATLAS_FOUND NO)
+  return()
+endif()
+
 find_path(ATLAS_CBLAS_INCLUDE_DIR
 NAMES cblas.h
 PATHS /usr/include/atlas/ /usr/include/ /usr/local/include/atlas/ /usr/local/include/
diff --git a/cmake_aux/Modules/ARMA_FindMKL.cmake b/cmake_aux/Modules/ARMA_FindMKL.cmake
index 0fd5b06..d6bcd49 100644
--- a/cmake_aux/Modules/ARMA_FindMKL.cmake
+++ b/cmake_aux/Modules/ARMA_FindMKL.cmake
@@ -6,6 +6,11 @@
 ## the link below explains why we're linking only with mkl_rt
 ## https://software.intel.com/en-us/articles/a-new-linking-model-single-dynamic-library-mkl_rt-since-intel-mkl-103
 
+if(CMAKE_DISABLE_FIND_PACKAGE_MKL)
+  set(MKL_FOUND NO)
+  return()
+endif()
+
 set(MKL_NAMES ${MKL_NAMES} mkl_rt)
 #set(MKL_NAMES ${MKL_NAMES} mkl_lapack)
 #set(MKL_NAMES ${MKL_NAMES} mkl_intel_thread)
diff --git a/cmake_aux/Modules/ARMA_FindSuperLU5.cmake b/cmake_aux/Modules/ARMA_FindSuperLU5.cmake
index abf046d..e496cb0 100644
--- a/cmake_aux/Modules/ARMA_FindSuperLU5.cmake
+++ b/cmake_aux/Modules/ARMA_FindSuperLU5.cmake
@@ -5,6 +5,11 @@
 #  SuperLU_LIBRARY      - Link this to use SuperLU
 #  SuperLU_INCLUDE_DIR  - directory of SuperLU headers
 
+if(CMAKE_DISABLE_FIND_PACKAGE_SuperLU)
+  set(SuperLU_FOUND OFF)
+  return()
+endif()
+
 find_path(SuperLU_INCLUDE_DIR slu_ddefs.h
   /usr/include/superlu/
   /usr/include/SuperLU/