Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Commit db9cb7f

Browse files
committed
(clarify readme)
1 parent 21d51db commit db9cb7f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ Add the dependency in your `build.zig.zon` by running the following command:
99
zig fetch --save git+https://github.com/Orolia2s/json-c#0.17
1010
```
1111

12-
Add it in your build.zig:
12+
Then, in your `build.zig`:
1313
```zig
1414
const jsonc = b.dependency("json-c", { .target = target, .optimize = optimize });
15-
16-
exe.linkLibrary(jsonc.artifact("json-c"));
15+
const libjsonc = jsonc.artifact("json-c");
16+
// wherever needed:
17+
exe.linkLibrary(libjsonc);
1718
```

0 commit comments

Comments
 (0)