Skip to content

Commit

Permalink
Fix find_path bug in CMakeLists (opendistro-for-elasticsearch#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmazanec15 committed Dec 30, 2020
1 parent b1cb467 commit 3300fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jni/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 3300fb8

Please sign in to comment.