@@ -10,7 +10,7 @@ how we tag releases.
1010
1111We do not ship binaries.
1212
13- Instead you should obtain a copy of the code sync'ed up
13+ Instead you should rely on a copy of the code sync'ed up
1414to the latest annotated tag. You can find the list of tags on
1515the [ project's GitHub tag page] ( tags ) or by listing the annotated tags in git
1616from a checked out copy of the code.
@@ -22,8 +22,8 @@ git tag -n99 --sort=-creatordate
2222
2323Examples below will use a dummy name of ` CHOSEN_RELEASE_TAG ` that you will have
2424to substitute for one of these tag names. During development you may also
25- substitute it to a specific commit or just ` main ` , but we don't recommend this
26- for production use.
25+ substitute it to a specific commit or just ` main ` , but we don't recommend
26+ running non-tagged code for production use.
2727
2828## Getting notified of new releases
2929
@@ -32,7 +32,8 @@ our [community page](https://questdb.io/community/).
3232
3333## main.cpp
3434
35- We will cover various approaches.
35+ We will cover various approaches of including ` c-questdb-client ` into your
36+ project.
3637
3738In all examples below, we will attempt to compile:
3839
@@ -50,8 +51,8 @@ int main()
5051## Option 1: CMake & FetchContent integration
5152
5253If your project already uses CMake, you may use its ` FetchContent ` feature to
53- automatically clone the repository into your build directory when compiling your
54- project.
54+ automatically clone the repository into your temporary build directory when
55+ compiling your project.
5556
5657Approach upsides:
5758* Easiest setup.
@@ -65,8 +66,9 @@ Approach downsides:
6566* Slightly slows down your clean-build time as it runs ` git clone ` every time
6667 you configure your CMake project (no impact on rebuild).
6768
68- In the example CMake below, you need to substitute ` CHOSEN_RELEASE_TAG ` for one
69- of our releases. Don't forget to also update ` your_project_name ` .
69+ In the example ` CMakeLists.txt ` configuration below, you need to substitute
70+ ` CHOSEN_RELEASE_TAG ` for one of our releases. Don't forget to also update
71+ ` your_project_name ` .
7072
7173``` cmake
7274# CMakeLists.txt
@@ -119,7 +121,8 @@ Grafting can be accomplished via either one of:
119121Pick either approach to obtain a copy of this library's code into
120122the ` deps/c-questdb-client ` directory within your git repository.
121123
122- Once done, the ` CMakeLists.txt ` config is the same.
124+ Once done, [ configuring ` CMakeLists.txt ` ] ( cmakeliststxt_with_subdirectory )
125+ config is the same.
123126
124127### Grafting via ` git subtree ` (recommended)
125128
@@ -142,7 +145,8 @@ from the command below and run it from your project's root:
142145git subtree add --prefix deps/c-questdb-client https://github.com/questdb/c-questdb-client.git CHOSEN_RELEASE_TAG --squash
143146```
144147
145- Anyone else in the team who will ` git clone ` your repo will get all files.
148+ Anyone else in the team who will ` git clone ` your repo will obtain all necessary
149+ files to build the project without additional steps.
146150
147151At a later date, to upgrade to a newer release (or to revert back to an older
148152one) pick a new release tag and run the following command, editing
@@ -197,7 +201,7 @@ git add deps/c-questdb-client
197201git commit -m " Updated submodule: c-questdb-client @ NEWLY_CHOSEN_RELEASE_TAG"
198202```
199203
200- ### CMakeLists.txt
204+ ### CMakeLists.txt with subdirectory
201205
202206Now that our library's code is accessible within your project's
203207` deps/c-questdb-client ` path we will try and build with it.
0 commit comments