diff --git a/internal/core/src/index/thirdparty/CMakeLists.txt b/internal/core/src/index/thirdparty/CMakeLists.txt index 89787da579..8b68fee57f 100644 --- a/internal/core/src/index/thirdparty/CMakeLists.txt +++ b/internal/core/src/index/thirdparty/CMakeLists.txt @@ -189,8 +189,3 @@ if (KNOWHERE_WITH_FAISS AND NOT TARGET faiss_ep) include_directories(SYSTEM "${FAISS_INCLUDE_DIR}") link_directories(SYSTEM ${FAISS_PREFIX}/lib/) endif () - -if ( BUILD_UNIT_TEST STREQUAL "ON" ) - add_subdirectory(profilers) -endif () - diff --git a/internal/core/thirdparty/CMakeLists.txt b/internal/core/thirdparty/CMakeLists.txt index 60c3e47988..f80c2495ea 100644 --- a/internal/core/thirdparty/CMakeLists.txt +++ b/internal/core/thirdparty/CMakeLists.txt @@ -42,6 +42,7 @@ find_package( Threads REQUIRED ) if ( MILVUS_BUILD_TESTS ) add_subdirectory( gtest ) add_subdirectory( google_benchmark ) + add_subdirectory( profilers ) endif() diff --git a/internal/core/src/index/thirdparty/profilers/CMakeLists.txt b/internal/core/thirdparty/profilers/CMakeLists.txt similarity index 98% rename from internal/core/src/index/thirdparty/profilers/CMakeLists.txt rename to internal/core/thirdparty/profilers/CMakeLists.txt index 33821d305e..062ee5fac5 100644 --- a/internal/core/src/index/thirdparty/profilers/CMakeLists.txt +++ b/internal/core/thirdparty/profilers/CMakeLists.txt @@ -10,8 +10,6 @@ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # or implied. See the License for the specific language governing permissions and limitations under the License. #------------------------------------------------------------------------------- -set( LIBUNWIND_VERSION 1.6.2 ) -set( GPERFTOOLS_VERSION 2.9.1 ) if ( DEFINED ENV{KNOWHERE_LIBUNWIND_URL} ) set( LIBUNWIND_SOURCE_URL "$ENV{KNOWHERE_LIBUNWIND_URL}" ) diff --git a/internal/core/thirdparty/versions.txt b/internal/core/thirdparty/versions.txt index c2c1a873ed..ec7330f155 100644 --- a/internal/core/thirdparty/versions.txt +++ b/internal/core/thirdparty/versions.txt @@ -2,3 +2,5 @@ GTEST_VERSION=1.8.1 YAMLCPP_VERSION=0.6.3 OPENTRACING_VERSION=v1.5.1 PROTOBUF_VERSION=3.9.0 +LIBUNWIND_VERSION=1.6.2 +GPERFTOOLS_VERSION=2.9.1 diff --git a/internal/core/unittest/CMakeLists.txt b/internal/core/unittest/CMakeLists.txt index cac78af130..04edfa565b 100644 --- a/internal/core/unittest/CMakeLists.txt +++ b/internal/core/unittest/CMakeLists.txt @@ -60,6 +60,7 @@ target_link_libraries(index_builder_test milvus_indexbuilder log pthread + gperftools ) target_link_libraries(all_tests