Only search in PROJECT_SOURCE_DIR for cjson.

Otherwise will never find an installed version for downstream modules
as they will find the header in opm-parser but not library.
This commit is contained in:
Markus Blatt
2016-11-02 21:22:58 +01:00
parent 34ed49d765
commit c7cf7d8144
+1 -1
View File
@@ -20,7 +20,7 @@ endif (CJSON_ROOT)
find_path (CJSON_INCLUDE_DIR
NAMES "cjson/cJSON.h"
HINTS "${CJSON_ROOT}"
PATHS "${PROJECT_SOURCE_DIR}" "${PROJECT_SOURCE_DIR}/../opm-parser"
PATHS "${PROJECT_SOURCE_DIR}"
PATH_SUFFIXES "include" "external"
DOC "Path to cjson library header files"
${_no_default_path} )