From 37af47322fd0cc9123bf6d45979fad9cdb504e79 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Tue, 14 May 2024 12:34:15 -0700 Subject: [PATCH] Fix headers search paths for nlohmann json in Core ML. (#3607) Summary: . Differential Revision: D57348926 --- backends/apple/coreml/runtime/inmemoryfs/setup.py | 2 +- .../workspace/executorchcoreml.xcodeproj/project.pbxproj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backends/apple/coreml/runtime/inmemoryfs/setup.py b/backends/apple/coreml/runtime/inmemoryfs/setup.py index 95818485ca8..c93022ed341 100644 --- a/backends/apple/coreml/runtime/inmemoryfs/setup.py +++ b/backends/apple/coreml/runtime/inmemoryfs/setup.py @@ -30,7 +30,7 @@ cxx_std=cxx_std, extra_compile_args=["-mmacosx-version-min=10.15", "-g"], include_dirs=[ - "../../third-party/nlohmann_json/single_include/nlohmann", + "../../third-party/nlohmann_json/single_include", ".", "../util", ], diff --git a/backends/apple/coreml/runtime/workspace/executorchcoreml.xcodeproj/project.pbxproj b/backends/apple/coreml/runtime/workspace/executorchcoreml.xcodeproj/project.pbxproj index d8ee4ea693a..d8a5e611077 100644 --- a/backends/apple/coreml/runtime/workspace/executorchcoreml.xcodeproj/project.pbxproj +++ b/backends/apple/coreml/runtime/workspace/executorchcoreml.xcodeproj/project.pbxproj @@ -900,7 +900,7 @@ "$(SRCROOT)/../include", "$(SRCROOT)/../sdk", "$(SRCROOT)/../util", - "$(SRCROOT)/../../third-party/nlohmann_json/single_include/nlohmann", + "$(SRCROOT)/../../third-party/nlohmann_json/single_include", "$(SRCROOT)/../../third-party/coremltools/deps/protobuf/src", ); IPHONEOS_DEPLOYMENT_TARGET = 16.0; @@ -931,7 +931,7 @@ "$(SRCROOT)/../include", "$(SRCROOT)/../sdk", "$(SRCROOT)/../util", - "$(SRCROOT)/../../third-party/nlohmann_json/single_include/nlohmann", + "$(SRCROOT)/../../third-party/nlohmann_json/single_include", "$(SRCROOT)/../../third-party/coremltools/deps/protobuf/src", ); IPHONEOS_DEPLOYMENT_TARGET = 16.0;