Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions third_party/model_api/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exports_files(["model_api_json_archive.patch"])
2 changes: 2 additions & 0 deletions third_party/model_api/model_api.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,7 @@ def workspace_model_api():
remote = "https:///github.com/openvinotoolkit/model_api/",
build_file = "@_model-api//:BUILD",
commit = "59685a8839176109ad677320228e2ee3ff94c788", # 26.11.2025 top of 'classic_cpp_support' branch
patch_args = ["-p1"],
patches = [Label("//third_party/model_api:model_api_json_archive.patch")],
)

19 changes: 19 additions & 0 deletions third_party/model_api/model_api_json_archive.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
diff --git a/src/cpp/CMakeLists.txt b/src/cpp/CMakeLists.txt
index 0f822bc..43d1cc0 100644
--- a/src/cpp/CMakeLists.txt
+++ b/src/cpp/CMakeLists.txt
@@ -35,9 +35,11 @@ find_package(OpenVINO REQUIRED
COMPONENTS Runtime Threading)

include(FetchContent)
-FetchContent_Declare(json GIT_REPOSITORY https://github.com/nlohmann/json.git
- GIT_TAG d41ca94fa85d5119852e2f7a3f94335cc7cb0486 # PR #4709, fixes cmake deprecation warnings
- )
+FetchContent_Declare(json
+ URL https://codeload.github.com/nlohmann/json/tar.gz/d41ca94fa85d5119852e2f7a3f94335cc7cb0486
+ URL_HASH SHA256=d107f80866a9940b1c1cc55e88629a8cd7e86d8b2991b38d9ff6404e49b7938e
+ DOWNLOAD_EXTRACT_TIMESTAMP TRUE
+)
FetchContent_MakeAvailable(json)

file(GLOB MODELS_SOURCES ./models/src/*.cpp)