Skip to content

Commit

Permalink
Remove usage of invalid faiss target name
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed May 20, 2024
1 parent 01a9f96 commit 81cf2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/cmake/thirdparty/get_faiss.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function(find_and_configure_faiss)
if(PKG_ENABLE_GPU AND PKG_BUILD_STATIC_LIBS AND CXX_AVX2_FOUND)
set(RAFT_FAISS_TARGETS "$<LINK_GROUP:RESCAN,$<LINK_LIBRARY:WHOLE_ARCHIVE,faiss_gpu>,faiss::faiss_avx2>" PARENT_SCOPE)
elseif(PKG_ENABLE_GPU AND PKG_BUILD_STATIC_LIBS)
set(RAFT_FAISS_TARGETS "$<LINK_GROUP:RESCAN,$<LINK_LIBRARY:WHOLE_ARCHIVE,faiss_gpu>,faiss::faiss_avx>" PARENT_SCOPE)
set(RAFT_FAISS_TARGETS "$<LINK_GROUP:RESCAN,$<LINK_LIBRARY:WHOLE_ARCHIVE,faiss_gpu>,faiss::faiss>" PARENT_SCOPE)
elseif(CXX_AVX2_FOUND)
set(RAFT_FAISS_TARGETS faiss::faiss_avx2 PARENT_SCOPE)
else()
Expand Down

0 comments on commit 81cf2c6

Please sign in to comment.