diff --git a/cpp/src/CMakeLists.txt b/cpp/src/CMakeLists.txt index b21485da77343a35aab1049969e87b97048e10fa..64edf5b91ef5a1aed92be90014bb9cf7e59cfb91 100644 --- a/cpp/src/CMakeLists.txt +++ b/cpp/src/CMakeLists.txt @@ -63,6 +63,10 @@ include_directories("${CUDA_TOOLKIT_ROOT_DIR}/include") include_directories(thrift/gen-cpp) include_directories(/usr/include/mysql) +if (MILVUS_ENABLE_PROFILING STREQUAL "ON") + SET(PROFILER_LIB profiler) +endif() + set(third_party_libs easyloggingpp sqlite @@ -82,7 +86,7 @@ set(third_party_libs zlib zstd mysqlpp - profiler + ${PROFILER_LIB} ${CUDA_TOOLKIT_ROOT_DIR}/lib64/stubs/libnvidia-ml.so )