From 87605bf0cc3d7d78fcd1374f24b99f892d550835 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sat, 29 Apr 2023 15:18:54 +0300 Subject: [PATCH] test-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr --- nlohmann-json/lure.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nlohmann-json/lure.sh b/nlohmann-json/lure.sh index 8c71b5d..9310cc5 100644 --- a/nlohmann-json/lure.sh +++ b/nlohmann-json/lure.sh @@ -24,6 +24,14 @@ build() { } +check() { + cd "${srcdir}/build" + cmake ../json -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=ON + make -j$(nproc) + ctest --output-on-failure +} + + package() { cd "${srcdir}/build" make "DESTDIR=$pkgdir" install