Skip to content

Commit e067c59

Browse files
committed
fix cmake in case of no faiss
1 parent d3e7edd commit e067c59

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ else ()
88
LINK_FLAGS "-flto -Wl,-rpath=$ORIGIN"
99
OUTPUT_NAME graphvite)
1010

11-
target_link_libraries(graphvite pthread curand glog.so faiss.so)
11+
target_link_libraries(graphvite pthread curand glog.so)
12+
if (FAISS_LIBRARY)
13+
target_link_libraries(graphvite faiss.so)
14+
endif()
1215
target_compile_options(graphvite PRIVATE "-Xcompiler=-fno-fat-lto-objects") # -flto
1316
endif ()

0 commit comments

Comments
 (0)