Skip to content

Commit 706b6aa

Browse files
William Breathitt Graysfan5
authored andcommitted
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: #9119
1 parent 49365b2 commit 706b6aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/Modules/FindJson.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ option(ENABLE_SYSTEM_JSONCPP "Enable using a system-wide JSONCPP. May cause seg
88

99
if(ENABLE_SYSTEM_JSONCPP)
1010
find_library(JSON_LIBRARY NAMES jsoncpp)
11-
find_path(JSON_INCLUDE_DIR json/features.h PATH_SUFFIXES jsoncpp)
11+
find_path(JSON_INCLUDE_DIR json/allocator.h PATH_SUFFIXES jsoncpp)
1212

1313
include(FindPackageHandleStandardArgs)
1414
find_package_handle_standard_args(JSONCPP DEFAULT_MSG JSON_LIBRARY JSON_INCLUDE_DIR)

0 commit comments

Comments
 (0)