See https://github.com/open-source-parsers/jsoncpp/issues/1568 and https://bugs.gentoo.org/940262 Which seems to be due to meson version lacking jsoncpp-targets.cmake or equivalent to define `JsonCpp` when the target is `JsonCpp` rather than `JsonCpp::JsonCpp`.
The real bug is here: https://github.com/KhronosGroup/OpenXR-SDK/blob/7d1c0961351bac61fd7bb72d402649d5ac3f2935/src/cmake/FindJsonCpp.cmake#L274-L279 It considers pkgconfig to be "old-school"... Fallout from the original addition in https://github.com/open-source-parsers/jsoncpp/pull/1486 which I guess was flawed? So now stuff can find this cmake file and fail due to finding it...
Proposed fix has been submitted: remove check_required_components altogether.
We should pull in the patch now.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09cbba1a603ba17efa14e163c3443ef6231eec1f commit 09cbba1a603ba17efa14e163c3443ef6231eec1f Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-09-29 10:48:35 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-09-29 10:48:35 +0000 dev-libs/jsoncpp: Fix installed CMake files Closes: https://bugs.gentoo.org/940272 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-libs/jsoncpp/files/jsoncpp-1.9.6-cmake.patch | 21 +++++++++ dev-libs/jsoncpp/jsoncpp-1.9.6-r1.ebuild | 56 ++++++++++++++++++++++++ 2 files changed, 77 insertions(+)
Once you confirm that -r1 works, let's stabilize it.
Thanks, -r1 works!