File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 make
1717 sudo make install
1818
19+ - run : sudo apt-get install libpqxx-dev
20+
1921 - run : cmake -S . -B build -DBUILD_TESTING=ON -DCMAKE_CXX_STANDARD=17
2022 - run : cmake --build build
2123 - run : build/test
Original file line number Diff line number Diff line change @@ -24,12 +24,7 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
2424 option (BUILD_TESTING "" OFF )
2525
2626 if (BUILD_TESTING)
27- option (BUILD_SHARED_LIBS "" ON )
28-
29- include (FetchContent )
30-
31- FetchContent_Declare (libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
32- FetchContent_MakeAvailable (libpqxx)
27+ find_package (libpqxx REQUIRED )
3328
3429 add_executable (test test /halfvec_test.cpp test /main.cpp test /pqxx_test.cpp test /sparsevec_test.cpp test /vector_test.cpp )
3530 target_link_libraries (test PRIVATE libpqxx::pqxx pgvector::pgvector )
You can’t perform that action at this time.
0 commit comments