Commit 48c8357 1 parent bfdda6a commit 48c8357 Copy full SHA for 48c8357
File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ option(FAISS_ENABLE_CUVS "Enable cuVS for GPU indexes." OFF)
64
64
option (FAISS_ENABLE_ROCM "Enable ROCm for GPU indexes." OFF )
65
65
option (FAISS_ENABLE_PYTHON "Build Python extension." ON )
66
66
option (FAISS_ENABLE_C_API "Build C API." OFF )
67
+ option (FAISS_ENABLE_EXTRAS "Build extras like benchmarks and demos" ON )
67
68
option (FAISS_USE_LTO "Enable Link-Time optimization" OFF )
68
69
69
70
if (FAISS_ENABLE_GPU)
@@ -103,10 +104,11 @@ if(FAISS_ENABLE_C_API)
103
104
add_subdirectory (c_api)
104
105
endif ()
105
106
106
- add_subdirectory (demos)
107
- add_subdirectory (benchs)
108
- add_subdirectory (tutorial/cpp)
109
-
107
+ if (FAISS_ENABLE_EXTRAS)
108
+ add_subdirectory (demos)
109
+ add_subdirectory (benchs)
110
+ add_subdirectory (tutorial/cpp)
111
+ endif ()
110
112
111
113
# CTest must be included in the top level to enable `make test` target.
112
114
include (CTest)
You can’t perform that action at this time.
0 commit comments