From 0789af25c9bbf6f73aebc7bd8a57ac33974ac334 Mon Sep 17 00:00:00 2001 From: JinHai-CN Date: Tue, 15 Oct 2019 14:38:02 +0800 Subject: [PATCH] MS-658 SQ8Hybrid can't search Former-commit-id: 9dc0507a4eaebb9f87aeca23d9b6b46f05b80b3c --- core/src/index/CMakeLists.txt | 4 ++++ core/unittest/CMakeLists.txt | 3 +++ 2 files changed, 7 insertions(+) diff --git a/core/src/index/CMakeLists.txt b/core/src/index/CMakeLists.txt index 9125f6ea2c..bedd35a4a2 100644 --- a/core/src/index/CMakeLists.txt +++ b/core/src/index/CMakeLists.txt @@ -86,6 +86,10 @@ include(DefineOptionsCore) include(BuildUtilsCore) include(ThirdPartyPackagesCore) +if (CUSTOMIZATION) + add_definitions(-DCUSTOMIZATION) +endif (CUSTOMIZATION) + add_subdirectory(knowhere) if (BUILD_COVERAGE STREQUAL "ON") diff --git a/core/unittest/CMakeLists.txt b/core/unittest/CMakeLists.txt index ac4fae85bb..b87a9a05f7 100644 --- a/core/unittest/CMakeLists.txt +++ b/core/unittest/CMakeLists.txt @@ -16,6 +16,9 @@ # specific language governing permissions and limitations # under the License. #------------------------------------------------------------------------------- +if (CUSTOMIZATION) + add_definitions(-DCUSTOMIZATION) +endif (CUSTOMIZATION) include_directories("${CUDA_TOOLKIT_ROOT_DIR}/include")