Skip to content

Commit 88a4412

Browse files
ignatenkobrainest31
authored andcommittedSep 26, 2015
FindJson: use PATH_SUFFIXES jsoncpp to find incdir
For example, on Fedora systems jsoncpp headers is installed in `/usr/include/jsoncpp`.
1 parent 8787d2e commit 88a4412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎cmake/Modules/FindJson.cmake

+1-1
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)
11+
find_path(JSON_INCLUDE_DIR json/features.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)
Please sign in to comment.