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)
committersfan5 <sfan5@live.de>
Sun, 17 Nov 2019 10:39:49 +0000 (11:39 +0100)
commit706b6aad06a112f55105f08b6acd130b276a06ca
treeb6bc4fd2a081fc95407fa8d0ffa76392a43abdc4
parent49365b25d9b2857e3f828032ac4d7daa049b4907
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