You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mkdocs/docs/integration/package_managers.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -717,7 +717,7 @@ Note: [`build2`](https://build2.org) should not be considered as a standalone pa
717
717
718
718
To use this package in an exising [`build2`](https://build2.org) project, the general steps are:
719
719
720
-
1. <details><summary>Make the package available to download from a package repository that provides it.</b></summary>
720
+
1. <details><summary>Make the package available to download from a package repository that provides it.</summary>
721
721
722
722
Your project's `repositories.manifest` specifies where the package manager will try to acquire packages by default. Make sure one of the repositories specified in this file provides `nlhomann-json` package.
723
723
The recommended open-source repository is [`cppget.org`](https://cppget.org/).
@@ -732,7 +732,7 @@ To use this package in an exising [`build2`](https://build2.org) project, the ge
732
732
733
733
2. <details><summary>Add this package as dependency of your project.</summary>
734
734
735
-
In your project's `manifest` add the dependency to the package, like `depends: nlohmann-json`. You could also add some [version constraints](https://build2.org/build2-toolchain/doc/build2-toolchain-intro.xhtml#guide-add-remove-deps).
735
+
In your project's `manifest` add the dependency to the package using `depends: nlohmann-json`. You could also add some [version constraints](https://build2.org/build2-toolchain/doc/build2-toolchain-intro.xhtml#guide-add-remove-deps).
736
736
For example, to depend on the latest version available:
737
737
```
738
738
depends: nlohmann-json
@@ -747,7 +747,7 @@ To use this package in an exising [`build2`](https://build2.org) project, the ge
747
747
```
748
748
import nljson = nlhomann-json%lib{json}
749
749
```
750
-
- add the library's target as requirement for your target using it, for example:
750
+
- then add the library's target as requirement for your target using it, for example:
751
751
```
752
752
exe{example} : ... $nljson
753
753
```
@@ -757,7 +757,7 @@ To use this package in an exising [`build2`](https://build2.org) project, the ge
757
757
758
758
At this point, assuming your project is initialized in a build-configuration, any `b` or `bdep update` command that will update/build the project will also acquire the missing dependency automatically, then build it and link it with your target.
759
759
760
-
If you just want to trigger the dependencies synchronization for all your configurations:
760
+
If you just want to synchronize dependencies for all your configurations to download the ones you just added:
761
761
```
762
762
bdep sync -af
763
763
```
@@ -812,10 +812,10 @@ To use this package in an exising [`build2`](https://build2.org) project, the ge
812
812
# create default C/C++ build configuration in ../example-myconfig/, initialize the project in it (downloads it's dependencies in it too)
813
813
bdep init -C @myconfig cc
814
814
815
-
# build only
815
+
# build only,
816
816
b
817
817
818
-
# build and test the executable's output, will only work if the `tescript` is correct
818
+
# or build and test the executable's output, will only work if the `tescript` is correct
0 commit comments