We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44febf0 commit 14fd16aCopy full SHA for 14fd16a
1 file changed
faiss/CMakeLists.txt
@@ -222,6 +222,17 @@ endif()
222
set(FAISS_HEADERS ${FAISS_HEADERS} PARENT_SCOPE)
223
224
add_library(faiss ${FAISS_SRC})
225
+if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
226
+ target_compile_options(
227
+ faiss PRIVATE
228
+ "-Wno-sign-compare"
229
+ "-Wno-unused-function"
230
+ "-Wno-unused-variable"
231
+ "-Wno-redundant-decls"
232
+ "-Wno-maybe-uninitialized"
233
+ "-Wno-format"
234
+ )
235
+endif()
236
237
add_library(faiss_avx2 ${FAISS_SRC})
238
if(NOT FAISS_OPT_LEVEL STREQUAL "avx2")
0 commit comments