Fix find_path for newer jsoncpp installations
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Sat, 16 Nov 2019 18:14:24 +0000 (13:14 -0500)
committerrubenwardy <rw@rubenwardy.com>
Tue, 31 Dec 2019 21:39:16 +0000 (21:39 +0000)
commit5e4739b4607e2867783c71c0301e1aa3df16529a
tree4cf97bfa02db4389117b8cf216b360a1d242b36b
parent0d8f598df214f9464baa939f2a7ce1d1750101a9
Fix find_path for newer jsoncpp installations

The upstream JsonCpp project has renamed the `json/features.h` file to
`json/json_features.h`. This patch fixes the JsonCpp installation search
by looking for `json/allocator.h` which has not been renamed on newer
versions of JsonCpp.

Fixes: https://github.com/minetest/minetest/issues/9119
cmake/Modules/FindJson.cmake