aboutsummaryrefslogtreecommitdiff
path: root/extra/json-c/build
blob: 53100c3479e42eb4d6011a92dda05d05ddd4318f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e

export DESTDIR="$1"

cmake -B build \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DCMAKE_BUILD_TYPE=Release \
    -DDISABLE_WERROR=ON \
    -DDISABLE_EXTRA_LIBS=ON \
    -DBUILD_TESTING=OFF \
    -Wno-dev

cmake --build   build
cmake --install build