diff --git a/BUILD.gn b/BUILD.gn index e43b3cd1cd73fee0a39bdfd845b0bd6eee665567..0699a60405e19ab8c026b4403c3a22edcd99de00 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") {