aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>2015-08-24 19:05:41 +0300
committerest31 <MTest31@outlook.com>2015-09-26 21:43:01 +0200
commit88a44122abdef9c23c5ab984742f12e4fbd41188 (patch)
tree9534b0983c4494c32aea23741658200581aa117c /cmake
parent8787d2e7e9671f3b5930ca9c41c6e0867b8a5a54 (diff)
downloadminetest-88a44122abdef9c23c5ab984742f12e4fbd41188.tar.gz
minetest-88a44122abdef9c23c5ab984742f12e4fbd41188.tar.bz2
minetest-88a44122abdef9c23c5ab984742f12e4fbd41188.zip
FindJson: use PATH_SUFFIXES jsoncpp to find incdir
For example, on Fedora systems jsoncpp headers is installed in `/usr/include/jsoncpp`.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/FindJson.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/FindJson.cmake b/cmake/Modules/FindJson.cmake
index 8e355b93f..1558b0fcf 100644
--- a/cmake/Modules/FindJson.cmake
+++ b/cmake/Modules/FindJson.cmake
@@ -8,7 +8,7 @@ option(ENABLE_SYSTEM_JSONCPP "Enable using a system-wide JSONCPP. May cause seg
if(ENABLE_SYSTEM_JSONCPP)
find_library(JSON_LIBRARY NAMES jsoncpp)
- find_path(JSON_INCLUDE_DIR json/features.h)
+ find_path(JSON_INCLUDE_DIR json/features.h PATH_SUFFIXES jsoncpp)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(JSONCPP DEFAULT_MSG JSON_LIBRARY JSON_INCLUDE_DIR)