meson build does not install nlohmann_json*.cmake files
Author: heitbaumCreated Dec 17, 2022Updated Sep 27, 2026
Labelskind: bugstate: help neededsolution: proposed fixgood first issue
Description
Issue identified that meson build does not install nlohmann_json*.cmake files into /usr/share/cmake/nlohmann_json, so packages expecting these .cmake files are unable to build.
Ref: https://github.com/LibreELEC/LibreELEC.tv/pull/7250
we have reverted back to cmake builds for the time being. ** Our package build system prefers meson over cmake
Reproduction steps
Complete a meson build
Expected vs. actual results
Use a cmake build
Minimal code example
NaError messages
NaCompiler and operating system
LibreELEC :master / gcc 12.2
Library version
3.11.2
Validation
- The bug also occurs if the latest version from the
developbranch is used. - I can successfully compile and run the unit tests.
Source: nlohmann/json