Skip to content

Commit 5119c1b

Browse files
committed
Updated libpqxx for tests and examples
1 parent ac9b8fa commit 5119c1b

File tree

9 files changed

+9
-45
lines changed

9 files changed

+9
-45
lines changed

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
2626
if(BUILD_TESTING)
2727
include(FetchContent)
2828

29-
# for libpqxx
30-
set(CMAKE_CXX_FLAGS "-Wno-unknown-attributes")
31-
set(SKIP_BUILD_TEST ON)
32-
33-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.0)
29+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
3430
FetchContent_MakeAvailable(libpqxx)
3531

3632
add_executable(test test/halfvec_test.cpp test/main.cpp test/pqxx_test.cpp test/sparsevec_test.cpp test/vector_test.cpp)

examples/citus/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ project(example)
44

55
set(CMAKE_CXX_STANDARD 17)
66

7-
# for libpqxx
8-
set(CMAKE_CXX_FLAGS "-Wno-unknown-attributes")
9-
set(SKIP_BUILD_TEST ON)
10-
117
include(FetchContent)
128

13-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.0)
9+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
1410
FetchContent_MakeAvailable(libpqxx)
1511

1612
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

examples/cohere/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@ project(example)
44

55
set(CMAKE_CXX_STANDARD 17)
66

7-
# for libpqxx
8-
set(CMAKE_CXX_FLAGS "-Wno-unknown-attributes")
9-
set(SKIP_BUILD_TEST ON)
10-
117
include(FetchContent)
128

139
FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git GIT_TAG 1.11.1)
1410
FetchContent_Declare(json GIT_REPOSITORY https://github.com/nlohmann/json.git GIT_TAG v3.11.3)
15-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.0)
11+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
1612
FetchContent_MakeAvailable(cpr json libpqxx)
1713

1814
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

examples/disco/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@ project(example)
44

55
set(CMAKE_CXX_STANDARD 20)
66

7-
# for libpqxx
8-
set(CMAKE_CXX_FLAGS "-Wno-unknown-attributes")
9-
set(SKIP_BUILD_TEST ON)
10-
117
include(FetchContent)
128

139
FetchContent_Declare(disco GIT_REPOSITORY https://github.com/ankane/disco-cpp.git GIT_TAG 458e69afca4303b72979ee90164d0f618f71e174)
14-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.0)
10+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
1511
FetchContent_MakeAvailable(disco libpqxx)
1612

1713
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

examples/hybrid/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@ project(example)
44

55
set(CMAKE_CXX_STANDARD 17)
66

7-
# for libpqxx
8-
set(CMAKE_CXX_FLAGS "-Wno-unknown-attributes")
9-
set(SKIP_BUILD_TEST ON)
10-
117
include(FetchContent)
128

139
FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git GIT_TAG 1.11.1)
1410
FetchContent_Declare(json GIT_REPOSITORY https://github.com/nlohmann/json.git GIT_TAG v3.11.3)
15-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.0)
11+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
1612
FetchContent_MakeAvailable(cpr json libpqxx)
1713

1814
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

examples/loading/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ project(example)
44

55
set(CMAKE_CXX_STANDARD 17)
66

7-
# for libpqxx
8-
set(CMAKE_CXX_FLAGS "-Wno-unknown-attributes")
9-
set(SKIP_BUILD_TEST ON)
10-
117
include(FetchContent)
128

13-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.0)
9+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
1410
FetchContent_MakeAvailable(libpqxx)
1511

1612
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

examples/openai/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@ project(example)
44

55
set(CMAKE_CXX_STANDARD 17)
66

7-
# for libpqxx
8-
set(CMAKE_CXX_FLAGS "-Wno-unknown-attributes")
9-
set(SKIP_BUILD_TEST ON)
10-
117
include(FetchContent)
128

139
FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git GIT_TAG 1.11.1)
1410
FetchContent_Declare(json GIT_REPOSITORY https://github.com/nlohmann/json.git GIT_TAG v3.11.3)
15-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.0)
11+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
1612
FetchContent_MakeAvailable(cpr json libpqxx)
1713

1814
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

examples/rdkit/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@ project(example)
44

55
set(CMAKE_CXX_STANDARD 17)
66

7-
# for libpqxx
8-
set(CMAKE_CXX_FLAGS "-Wno-unknown-attributes")
9-
set(SKIP_BUILD_TEST ON)
10-
117
find_package(RDKit REQUIRED)
128
find_package(Boost COMPONENTS iostreams serialization system REQUIRED)
139

1410
include(FetchContent)
1511

16-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.0)
12+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
1713
FetchContent_MakeAvailable(libpqxx)
1814

1915
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

examples/sparse/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@ project(example)
44

55
set(CMAKE_CXX_STANDARD 17)
66

7-
# for libpqxx
8-
set(CMAKE_CXX_FLAGS "-Wno-unknown-attributes")
9-
set(SKIP_BUILD_TEST ON)
10-
117
include(FetchContent)
128

139
FetchContent_Declare(cpr GIT_REPOSITORY https://github.com/libcpr/cpr.git GIT_TAG 1.11.1)
1410
FetchContent_Declare(json GIT_REPOSITORY https://github.com/nlohmann/json.git GIT_TAG v3.11.3)
15-
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.0)
11+
FetchContent_Declare(libpqxx GIT_REPOSITORY https://github.com/jtv/libpqxx.git GIT_TAG 7.10.1)
1612
FetchContent_MakeAvailable(cpr json libpqxx)
1713

1814
add_subdirectory("${PROJECT_SOURCE_DIR}/../.." pgvector)

0 commit comments

Comments
 (0)