-
-
Notifications
You must be signed in to change notification settings - Fork 7k
meson build does not install nlohmann_json*.cmake files #3885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am not an expert on Meson. PRs welcome! |
Is there a static cmake file that can be installed? |
Ok: having a more detailed look: meson install_pkg
cmake install_pkg
|
nlohmann_jsonTargets.cmake is most likely a very complicated file autogenerated from scratch by the cmake program itself. Its job is basically to do |
ls -l the below is created from cmake/config.cmake.in / text replacement…
below is just a simple text version replacement from cmake/nlohmann_jsonConfigVersion.cmake.in
|
This is a far more complicated set of CMake config files than Meson knows how to generate currently, and I'm not interested in adding support, or even really in reviewing it. It's sort of a well known problem that pkg-config has limited expressiveness and CMake targets are CMake specific, and theres work on going to develop something that is vendor neutral but more expressive called CPS. Given that both Meson and CMake are working to support CPS, I'm disinclined to spend time teaching Meson to output these more complex CMake configs |
With the #4452 fix both pvr.freebox and pvr.vuplus are building with nlohmann_json, (so the pkgconfig seems to be enough.)
|
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: LibreELEC/LibreELEC.tv#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
Error messages
Compiler and operating system
LibreELEC :master / gcc 12.2
Library version
3.11.2
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: