From 88a44122abdef9c23c5ab984742f12e4fbd41188 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 24 Aug 2015 19:05:41 +0300 Subject: [PATCH] FindJson: use PATH_SUFFIXES jsoncpp to find incdir For example, on Fedora systems jsoncpp headers is installed in `/usr/include/jsoncpp`. --- cmake/Modules/FindJson.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1