microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
cmake/externals/json.cmake
11lines · modecode
| 1 | FetchContent_Declare(nlohmann_json |
| 2 | GIT_REPOSITORY https://github.com/nlohmann/json.git |
| 3 | GIT_TAG v3.10.5) |
| 4 | |
| 5 | set(JSON_BuildTests OFF CACHE INTERNAL "") |
| 6 | |
| 7 | FetchContent_GetProperties(nlohmann_json) |
| 8 | if(NOT nlohmann_json_POPULATED) |
| 9 | FetchContent_Populate(nlohmann_json) |
| 10 | add_subdirectory(${nlohmann_json_SOURCE_DIR} ${nlohmann_json_BINARY_DIR} EXCLUDE_FROM_ALL) |
| 11 | endif() |
| 12 | |