add_library(nlohmann_json_wrapper INTERFACE) target_sources(nlohmann_json_wrapper INTERFACE $ ) target_include_directories(nlohmann_json_wrapper INTERFACE $ ) target_compile_options(nlohmann_json_wrapper INTERFACE $<$,$>:-Wno-all -Wno-error> ) if(ADIOS2_USE_EXTERNAL_NLOHMANN_JSON) find_package(nlohmann_json REQUIRED) target_link_libraries(nlohmann_json_wrapper INTERFACE $ ) else() target_sources(nlohmann_json_wrapper INTERFACE $ ) target_include_directories(nlohmann_json_wrapper INTERFACE $ ) endif() install(TARGETS nlohmann_json_wrapper EXPORT adios2Exports)