We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e6ec47 commit 5de2309Copy full SHA for 5de2309
1 file changed
faiss/CMakeLists.txt
@@ -230,6 +230,17 @@ endif()
230
set(FAISS_HEADERS ${FAISS_HEADERS} PARENT_SCOPE)
231
232
add_library(faiss ${FAISS_SRC})
233
+if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
234
+ target_compile_options(
235
+ faiss PRIVATE
236
+ "-Wno-sign-compare"
237
+ "-Wno-unused-function"
238
+ "-Wno-unused-variable"
239
+ "-Wno-redundant-decls"
240
+ "-Wno-maybe-uninitialized"
241
+ "-Wno-format"
242
+ )
243
+endif()
244
245
add_library(faiss_avx2 ${FAISS_SRC})
246
if(NOT FAISS_OPT_LEVEL STREQUAL "avx2" AND NOT FAISS_OPT_LEVEL STREQUAL "avx512")
0 commit comments