File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,20 +58,18 @@ set(CUVS_ANN_BENCH_USE_FAISS OFF)
5858message (STATUS "Checking for FAISS use in benchmarks..." )
5959foreach (_varName ${_variableNames} )
6060 if (_varName MATCHES "CUVS_ANN_BENCH_USE_FAISS.+" )
61- if (DEFINED ${_varName} )
62- if (${_varName} )
63- set (CUVS_ANN_BENCH_USE_FAISS ON )
64- message (STATUS "FAISS use in benchmarks detected." )
65- break ()
66- endif ()
67- endif ()
61+ if (${_varName} )
62+ set (CUVS_ANN_BENCH_USE_FAISS ON )
63+ message (STATUS "${_varName} is detected as ON." )
64+ break ()
65+ endif ()
6866 endif ()
6967endforeach ()
7068
7169if (CUVS_ANN_BENCH_USE_FAISS)
72- message (STATUS "CUVS_ANN_BENCH_USE_FAISS is ON" )
70+ message (STATUS "CUVS_ANN_BENCH_USE_FAISS is switched ON" )
7371else ()
74- message (STATUS "CUVS_ANN_BENCH_USE_FAISS is OFF" )
72+ message (STATUS "CUVS_ANN_BENCH_USE_FAISS is switched OFF" )
7573endif ()
7674
7775# ----------------------------------
You can’t perform that action at this time.
0 commit comments