Fix find_path for newer jsoncpp release

features.h was renamed but allocator.h wasn't so the latter works with
both old and new versions.
This commit is contained in:
James Le Cuirot 2019-11-20 22:24:10 +00:00
parent 8829f44e37
commit ff353126ec
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137

View File

@ -10,7 +10,7 @@ pkg_check_modules(PC_JSONCPP REQUIRED jsoncpp)
find_path(JSONCPP_INCLUDE_DIR
NAMES
json/features.h
json/allocator.h
HINTS
${PC_JSONCPP_INCLUDEDIR}
${PC_JSONCPP_INCLUDEDIRS}