From db8ae62fb64fa33657f598a62045f17fc779ef8b Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Tue, 20 Oct 2020 20:14:41 +0200 Subject: properly include header directories, change how json-c is found --- cmake/FindJsonC.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmake/FindJsonC.cmake') diff --git a/cmake/FindJsonC.cmake b/cmake/FindJsonC.cmake index 9dfcf4a..028bb2f 100644 --- a/cmake/FindJsonC.cmake +++ b/cmake/FindJsonC.cmake @@ -14,13 +14,13 @@ else() endif() find_path(JSONC_INC - NAMES json-c/json.h + NAMES json.h HINTS ENV jsoncPath${_lib_suffix} ENV jsoncPath ${_JSONC_INCLUDE_DIRS} PATHS - /usr/include /usr/local/include) + /usr/include/json-c /usr/local/include/json-c) find_library(JSONC_LIB NAMES ${_JSONC_LIBRARIES} jsonc json-c -- cgit v1.2.3