Skip to content

Commit 0ca961c

Browse files
author
Matthieu Longo
committed
Update README with instructions for Conan
1 parent f5730b4 commit 0ca961c

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,17 @@ To build jsonld-cpp, you will need:
2020
jsonld-cpp uses a pretty standard cmake build system:
2121

2222
```
23-
mkdir build
24-
cd build
25-
cmake ..
26-
make
23+
mkdir build-dir && cd build-dir
24+
conan install .. --build=missing
25+
cmake -GNinja -DCMAKE_PREFIX_PATH=$(pwd) -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(pwd)/sysroot ..
26+
ninja
27+
ninja test
28+
ninja install
29+
```
30+
31+
To export the thirdparty with Conan:
32+
```
33+
conan create . jsonld-cpp/0.5.0@amazon/testing --build-require
2734
```
2835

2936
You may run into permission issues during the build when the dependencies are

0 commit comments

Comments
 (0)