Add external cJSON library to opm-parser_LIBRARIES.

This commit is contained in:
Markus Blatt
2016-11-02 20:28:12 +01:00
parent b75f24afc2
commit 34ed49d765
+10
View File
@@ -137,6 +137,16 @@ if (ERT_FOUND AND Boost_FOUND AND
${Boost_LIBRARIES}
${ERT_LIBRARIES})
# We might be using an external cJSON library
find_package(cjson)
if (CJSON_FOUND)
# If we do we need to add it to the libs.
set (opm-parser_LIBRARIES
${opm-parser_LIBRARIES}
${CJSON_LIBRARY})
endif (CJSON_FOUND)
# see if we can compile a minimum example
# CMake logical test doesn't handle lists (sic)
include (CMakePushCheckState)