]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/armadillo/add-disable-find-package.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / armadillo / add-disable-find-package.patch
CommitLineData
1e59de90
TL
1diff --git a/cmake_aux/Modules/ARMA_FindARPACK.cmake b/cmake_aux/Modules/ARMA_FindARPACK.cmake
2index 1a709ad..3029c25 100644
3--- a/cmake_aux/Modules/ARMA_FindARPACK.cmake
4+++ b/cmake_aux/Modules/ARMA_FindARPACK.cmake
5@@ -4,6 +4,10 @@
6 # ARPACK_FOUND - system has ARPACK
7 # ARPACK_LIBRARY - Link this to use ARPACK
8
9+if(CMAKE_DISABLE_FIND_PACKAGE_ARPACK)
10+ set(ARPACK_FOUND NO)
11+ return()
12+endif()
13
14 find_library(ARPACK_LIBRARY
15 NAMES arpack
16diff --git a/cmake_aux/Modules/ARMA_FindATLAS.cmake b/cmake_aux/Modules/ARMA_FindATLAS.cmake
17index 491a361..e40a0ff 100644
18--- a/cmake_aux/Modules/ARMA_FindATLAS.cmake
19+++ b/cmake_aux/Modules/ARMA_FindATLAS.cmake
20@@ -1,3 +1,8 @@
21+if(CMAKE_DISABLE_FIND_PACKAGE_ATLAS)
22+ set(ATLAS_FOUND NO)
23+ return()
24+endif()
25+
26 find_path(ATLAS_CBLAS_INCLUDE_DIR
27 NAMES cblas.h
28 PATHS /usr/include/atlas/ /usr/include/ /usr/local/include/atlas/ /usr/local/include/
29diff --git a/cmake_aux/Modules/ARMA_FindMKL.cmake b/cmake_aux/Modules/ARMA_FindMKL.cmake
30index 0fd5b06..d6bcd49 100644
31--- a/cmake_aux/Modules/ARMA_FindMKL.cmake
32+++ b/cmake_aux/Modules/ARMA_FindMKL.cmake
33@@ -6,6 +6,11 @@
34 ## the link below explains why we're linking only with mkl_rt
35 ## https://software.intel.com/en-us/articles/a-new-linking-model-single-dynamic-library-mkl_rt-since-intel-mkl-103
36
37+if(CMAKE_DISABLE_FIND_PACKAGE_MKL)
38+ set(MKL_FOUND NO)
39+ return()
40+endif()
41+
42 set(MKL_NAMES ${MKL_NAMES} mkl_rt)
43 #set(MKL_NAMES ${MKL_NAMES} mkl_lapack)
44 #set(MKL_NAMES ${MKL_NAMES} mkl_intel_thread)
45diff --git a/cmake_aux/Modules/ARMA_FindSuperLU5.cmake b/cmake_aux/Modules/ARMA_FindSuperLU5.cmake
46index abf046d..e496cb0 100644
47--- a/cmake_aux/Modules/ARMA_FindSuperLU5.cmake
48+++ b/cmake_aux/Modules/ARMA_FindSuperLU5.cmake
49@@ -5,6 +5,11 @@
50 # SuperLU_LIBRARY - Link this to use SuperLU
51 # SuperLU_INCLUDE_DIR - directory of SuperLU headers
52
53+if(CMAKE_DISABLE_FIND_PACKAGE_SuperLU)
54+ set(SuperLU_FOUND OFF)
55+ return()
56+endif()
57+
58 find_path(SuperLU_INCLUDE_DIR slu_ddefs.h
59 /usr/include/superlu/
60 /usr/include/SuperLU/