Skip to content

Commit ed43ed5

Browse files
committed
Debug
1 parent 395de2e commit ed43ed5

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
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

CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)