aboutsummaryrefslogtreecommitdiff
path: root/ports/faiss/fix-dependencies.patch
diff options
context:
space:
mode:
authorbucurb <bobuc@microsoft.com>2021-07-16 20:03:54 +0100
committerGitHub <noreply@github.com>2021-07-16 12:03:54 -0700
commit0f059596124b7afce437e5dad4588fb3ff06719e (patch)
tree4249f4e415513eecc06dda3c9e966d6ee4a275da /ports/faiss/fix-dependencies.patch
parent0bf44b144bb767f48685ac84e5bfd76f05db958f (diff)
downloadvcpkg-0f059596124b7afce437e5dad4588fb3ff06719e.tar.gz
vcpkg-0f059596124b7afce437e5dad4588fb3ff06719e.zip
[Faiss] Fix dependencies (#18780)
* fixed targets * bumped port version * updated sha * lapack-reference should always write into lapack * lapack-reference sha * Fixed clapack target * versions * sha * ensure cmake finds the cuda compiler * sha
Diffstat (limited to 'ports/faiss/fix-dependencies.patch')
-rw-r--r--ports/faiss/fix-dependencies.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/ports/faiss/fix-dependencies.patch b/ports/faiss/fix-dependencies.patch
new file mode 100644
index 000000000..caddb6b57
--- /dev/null
+++ b/ports/faiss/fix-dependencies.patch
@@ -0,0 +1,34 @@
+diff --git a/cmake/faiss-config.cmake.in b/cmake/faiss-config.cmake.in
+index 43ea9d4c..437a7f81 100644
+--- a/cmake/faiss-config.cmake.in
++++ b/cmake/faiss-config.cmake.in
+@@ -4,4 +4,7 @@
+ # This source code is licensed under the BSD-style license found in the
+ # LICENSE file in the root directory of this source tree.
+
++find_dependency(OpenMP REQUIRED)
++find_dependency(BLAS REQUIRED)
++find_dependency(LAPACK REQUIRED)
+ include("${CMAKE_CURRENT_LIST_DIR}/faiss-targets.cmake")
+diff --git a/faiss/CMakeLists.txt b/faiss/CMakeLists.txt
+index 51680fd1..691f52c2 100644
+--- a/faiss/CMakeLists.txt
++++ b/faiss/CMakeLists.txt
+@@ -148,14 +148,14 @@ find_package(OpenMP REQUIRED)
+ target_link_libraries(faiss PRIVATE OpenMP::OpenMP_CXX)
+
+ find_package(MKL)
+-if(MKL_FOUND)
++if(0)
+ target_link_libraries(faiss PRIVATE ${MKL_LIBRARIES})
+ else()
+ find_package(BLAS REQUIRED)
+- target_link_libraries(faiss PRIVATE ${BLAS_LIBRARIES})
++ target_link_libraries(faiss PRIVATE BLAS::BLAS)
+
+ find_package(LAPACK REQUIRED)
+- target_link_libraries(faiss PRIVATE ${LAPACK_LIBRARIES})
++ target_link_libraries(faiss PRIVATE LAPACK::LAPACK)
+ endif()
+
+ install(TARGETS faiss