Build Jansson if library not found

If the Jansson JSON library is not found on the system, it is built from
source.
This commit is contained in:
Markus Mäkelä
2017-01-27 07:28:57 +02:00
parent 89f456840c
commit 4adc9d705b
8 changed files with 32 additions and 6 deletions

View File

@ -62,6 +62,12 @@ if(NOT MARIADB_CONNECTOR_FOUND)
include(cmake/BuildMariaDBConnector.cmake)
endif()
if(NOT JANSSON_FOUND)
message(STATUS "Building Jansson from source.")
include(cmake/BuildJansson.cmake)
include_directories(${JANSSON_INCLUDE_DIR})
endif()
# You can find the variables set by this in the FindCURL.cmake file
# which is a default module in CMake.