nlohmann / nlohmann/json

meson build does not install nlohmann_json*.cmake files

Open
#3,885 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue kind: bug state: help needed state: waiting for PR
Dominant language
C++
Stars
50.6k
Forks
7.5k
Avg merge
4d 17h
Merged PRs (30d)
58

Description

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
Na
Error messages
Na
Compiler and operating system

LibreELEC :master / gcc 12.2

Library version

3.11.2

Validation

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing a Meson build and inspecting its installation configuration for nlohmann_json*.cmake files. Compare the Meson installation result with the CMake build and verify that the files are installed under /usr/share/cmake/nlohmann_json so packages depending on them can build.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.