From d794393128dcfb65beb6e9ba0a11bd3e57ae52b7 Mon Sep 17 00:00:00 2001 From: youbing54 Date: Fri, 26 Apr 2024 10:15:41 +0800 Subject: [PATCH] Description: CJSON Compilation Rectification IssueNo: https://gitee.com/openharmony/third_party_cJSON/issues/I9JSGK Feature or Bugfix: Feature Binary Source:Yes Signed-off-by: youbing54 --- BUILD.gn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index e43b3cd..0699a60 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -13,7 +13,7 @@ if (defined(ohos_lite)) { config("cjson_config") { - include_dirs = [ "." ] + include_dirs = [ "//third_party/cJSON" ] ldflags = [ "-lm" ] defines = [ "CJSON_NESTING_LIMIT=(128)" ] } @@ -41,7 +41,7 @@ if (defined(ohos_lite)) { } else { import("//build/ohos.gni") config("cJSON_config") { - include_dirs = [ "." ] + include_dirs = [ "//third_party/cJSON" ] defines = [ "CJSON_NESTING_LIMIT=(128)" ] } ohos_static_library("cjson_static") { -- Gitee