Skip to content

Commit c99b3a4

Browse files
committed
add libs::nlohmann-json v3.12.0
1 parent e437f54 commit c99b3a4

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

recipes/libs/nlohmann-json.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
inherit: [cmake]
2+
3+
metaEnvironment:
4+
PKG_VERSION: "3.12.0"
5+
PKG_LICENSE: "MIT"
6+
7+
checkoutSCM:
8+
scm: url
9+
url: ${GITHUB_MIRROR}/nlohmann/json/archive/refs/tags/v${PKG_VERSION}.tar.gz
10+
digestSHA256: 4b92eb0c06d10683f7447ce9406cb97cd4b453be18d7279320f7b2f025c10187
11+
stripComponents: 1
12+
13+
buildScript: |
14+
cmakeBuild $1 -DJSON_BuildTests=Off
15+
16+
multiPackage:
17+
dev:
18+
packageScript: cmakePackageDev
19+
tgt: # probably unnecessary since this is a header only library?
20+
packageScript: cmakePackageTgt

tests/buildall/recipes/all.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ depends:
7474
- libs::mesa3d-tgt
7575
- libs::mtdev-tgt
7676
- libs::nettle-tgt
77+
- libs::nlohmann-json-tgt
7778
- libs::npth-tgt
7879
- libs::openssl
7980
- name: libs::openssl

0 commit comments

Comments
 (0)