chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / sq / sqlite-vss / use-nixpkgs-libs.patch
blobf6e322d5b2b6fc755a677e399f60b02aa1d181b3
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index c59d993..5606b46 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
5 @@ -18,15 +18,12 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
6 option(FAISS_ENABLE_GPU "" OFF)
7 option(FAISS_ENABLE_PYTHON "" OFF)
8 option(BUILD_TESTING "" OFF)
9 -add_subdirectory(./vendor/faiss)
11 -# vendor in SQLite amalgammation
12 -include_directories(vendor/sqlite)
13 -link_directories(BEFORE vendor/sqlite)
14 +find_package(OpenMP REQUIRED)
15 +find_package(faiss REQUIRED)
17 # Adding nlohmann_json for json parsing
18 set(JSON_BuildTests OFF CACHE INTERNAL "")
19 -add_subdirectory(vendor/json)
20 +find_package(nlohmann_json REQUIRED)
22 # ================================== sqlite-vector ================================== #
23 add_library(sqlite-vector SHARED src/sqlite-vector.cpp)
24 @@ -49,7 +46,7 @@ target_compile_definitions(sqlite-vector-static PUBLIC SQLITE_CORE)
25 # ================================== sqlite-vss ================================== #
26 add_library(sqlite-vss SHARED src/sqlite-vss.cpp)
27 target_link_libraries(sqlite-vss sqlite3)
28 -target_link_libraries(sqlite-vss faiss_avx2)
29 +target_link_libraries(sqlite-vss faiss)
30 target_include_directories(sqlite-vss PUBLIC "${PROJECT_BINARY_DIR}")
32 set_target_properties(sqlite-vss PROPERTIES PREFIX "")
33 @@ -58,7 +55,7 @@ set_target_properties(sqlite-vss PROPERTIES OUTPUT_NAME "vss0")
34 # ============================== sqlite-vss-static =============================== #
35 add_library(sqlite-vss-static STATIC src/sqlite-vss.cpp)
36 target_link_libraries(sqlite-vss-static PRIVATE sqlite3)
37 -target_link_libraries(sqlite-vss-static PUBLIC faiss_avx2)
38 +target_link_libraries(sqlite-vss-static PUBLIC faiss)
39 target_link_options(sqlite-vss-static PRIVATE "-Wl,-all_load")
40 target_include_directories(sqlite-vss-static PUBLIC "${PROJECT_BINARY_DIR}")
41 set_target_properties(sqlite-vss-static PROPERTIES OUTPUT_NAME "sqlite_vss0")