Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

642 B
Raw Blame
# Download hnsw (header-only)

set(HNSW_VERSION 21de18ffabea1a9d1e8b16b49afc6045d7707e4c)
set(HNSW_NAME hnswlib-${HNSW_VERSION})
set(HNSW_TAR_PATH ${DEP_ROOT_DIR}/${HNSW_NAME}.tar.gz)

if(NOT EXISTS ${HNSW_TAR_PATH})
    message(STATUS "Downloading https://github.com/typesense/hnswlib/archive/${HNSW_VERSION}.tar.gz")
    file(DOWNLOAD https://github.com/typesense/hnswlib/archive/${HNSW_VERSION}.tar.gz ${HNSW_TAR_PATH})
endif()

if(NOT EXISTS ${DEP_ROOT_DIR}/${HNSW_NAME})
    message(STATUS "Extracting ${HNSW_NAME}...")
    execute_process(COMMAND ${CMAKE_COMMAND} -E tar xzf ${HNSW_TAR_PATH} WORKING_DIRECTORY ${DEP_ROOT_DIR}/)
endif()