diff --git a/CMakeLists.txt b/CMakeLists.txt index 58f31ff..d8ae930 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,9 +149,10 @@ target_include_directories( $ ) if (USEARCH_USE_NUMKONG) + find_path(NUMKONG_INCLUDE_DIRS "numkong/attention.h") target_include_directories( ${USEARCH_TARGET_NAME} ${USEARCH_SYSTEM_INCLUDE} - INTERFACE $ $ + INTERFACE $ $ ) endif () # Install a pkg-config file, so other tools can find this @@ -212,7 +213,7 @@ if (NOT CMAKE_BUILD_TYPE) endif () # Include directories -set(USEARCH_HEADER_INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/include" "${CMAKE_CURRENT_SOURCE_DIR}/numkong/include") +set(USEARCH_HEADER_INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/include") # Function to setup target function (setup_target TARGET_NAME) @@ -385,7 +386,7 @@ endfunction () # Delegate NumKong compilation to its own CMakeLists.txt — it handles ISA detection, NK_TARGET_* flags, and SIMD # dispatch backends internally. -if (USEARCH_USE_NUMKONG) +if (0) set(NK_BUILD_SHARED ON CACHE BOOL "" FORCE