From 24ed24a094200a7ba369c35d9f02a82d94d7393b Mon Sep 17 00:00:00 2001 From: SupervisedThinking Date: Wed, 14 Dec 2022 17:25:47 +0100 Subject: [PATCH] nlohmann-json: use cmake toolchain - the meson build is rather incomplete & not all packages were satisfied by a pkgconfig file which it provides, those looking for cmake config files e.g by calling `find_package(nlohmann_json 3.8 REQUIRED)` will fail --- packages/textproc/nlohmann-json/package.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/textproc/nlohmann-json/package.mk b/packages/textproc/nlohmann-json/package.mk index dfcb08de49..38d1c35ecc 100644 --- a/packages/textproc/nlohmann-json/package.mk +++ b/packages/textproc/nlohmann-json/package.mk @@ -9,3 +9,7 @@ PKG_SITE="https://nlohmann.github.io/json/" PKG_URL="https://github.com/nlohmann/json/archive/v${PKG_VERSION}.tar.gz" PKG_DEPENDS_TARGET="toolchain" PKG_LONGDESC="JSON for Modern C++" +# Meson does not provide nlohmann_json*.cmake files which some projects rely on +PKG_TOOLCHAIN="cmake" + +PKG_CMAKE_OPTS_TARGET="-DJSON_BuildTests=OFF"