1 include(FindPackageHandleStandardArgs)
2 set(${CMAKE_FIND_PACKAGE_NAME}_CONFIG ${CMAKE_CURRENT_LIST_FILE})
3 find_package_handle_standard_args(nlohmann_json CONFIG_MODE)
5 if(NOT TARGET nlohmann_json::nlohmann_json)
6 include("${CMAKE_CURRENT_LIST_DIR}/nlohmann_jsonTargets.cmake")
7 if((NOT TARGET nlohmann_json) AND
8 (NOT nlohmann_json_FIND_VERSION OR
9 nlohmann_json_FIND_VERSION VERSION_LESS 3.2.0))
10 add_library(nlohmann_json INTERFACE IMPORTED)
11 set_target_properties(nlohmann_json PROPERTIES
12 INTERFACE_LINK_LIBRARIES nlohmann_json::nlohmann_json