Skip to content

Commit d3de935

Browse files
committed
Updated readme [skip ci]
1 parent 9cc58de commit d3de935

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ cmake --build build
1818
cmake --install build # may need sudo
1919
```
2020

21+
There is also experimental support for FetchContent:
22+
23+
```cmake
24+
include(FetchContent)
25+
26+
FetchContent_Declare(pgvector GIT_REPOSITORY https://github.com/pgvector/pgvector-cpp.git GIT_TAG 9cc58de1aae171f26bf72b4196f17018d6488725)
27+
FetchContent_MakeAvailable(pgvector)
28+
29+
target_link_libraries(app PRIVATE pgvector::pgvector)
30+
```
31+
2132
And follow the instructions for your database library:
2233

2334
- [libpqxx](#libpqxx)

0 commit comments

Comments
 (0)