From 3300fb8412218854f97c9a616f6dddd7209b0e0a Mon Sep 17 00:00:00 2001 From: Jack Mazanec Date: Thu, 10 Dec 2020 14:41:25 -0800 Subject: [PATCH] Fix find_path bug in CMakeLists (#280) --- jni/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jni/CMakeLists.txt b/jni/CMakeLists.txt index a879f5bc..bcaf11c0 100644 --- a/jni/CMakeLists.txt +++ b/jni/CMakeLists.txt @@ -31,7 +31,7 @@ set(KNN_INDEX KNNIndexV2_0_6) set(KNN_PACKAGE_NAME opendistro-knnlib) # Check if similarity search exists -find_path(NMS_REPO_DIR NAMES similarity_search PATHS ${CMAKE_CURRENT_SOURCE_DIR}/external/nmslib REQUIRED) +find_path(NMS_REPO_DIR NAMES similarity_search PATHS ${CMAKE_CURRENT_SOURCE_DIR}/external/nmslib) # If not, pull the updated submodule if (NOT EXISTS ${NMS_REPO_DIR})