diff --git a/cmake/FindYAJL.cmake b/cmake/FindYAJL.cmake index b7d773273..186e31953 100644 --- a/cmake/FindYAJL.cmake +++ b/cmake/FindYAJL.cmake @@ -9,7 +9,7 @@ find_package(PkgConfig) pkg_check_modules(PC_YAJL QUIET yajl) set(YAJL_DEFINITIONS ${PC_YAJL_CFLAGS_OTHER}) -find_path(YAJL_INCLUDE_DIR yajl/yajl_parse.h +find_path(YAJL_INCLUDE_DIR yajl/yajl_version.h HINTS ${PC_YAJL_INCLUDEDIR} ${PC_YAJL_INCLUDE_DIRS} PATH_SUFFIXES libyajl)