]> granicus.if.org Git - icinga2/blob - cmake/FindJSON.cmake
Merge pull request #7403 from Icinga/feature/docs-agents
[icinga2] / cmake / FindJSON.cmake
1 FIND_PATH (JSON_INCLUDE json.hpp HINTS "${PROJECT_SOURCE_DIR}/third-party/nlohmann_json")
2
3 if (JSON_INCLUDE)
4   set(JSON_BuildTests OFF CACHE INTERNAL "")
5
6   message(STATUS "Found JSON: ${JSON_INCLUDE}" )
7 else ()
8   message(FATAL_ERROR "Unable to include json.hpp")
9 endif ()