diff --git a/interfaces/innerkits/native/BUILD.gn b/interfaces/innerkits/native/BUILD.gn index 3287bf74f9eb7202f58a249eea8eb448014af1fc..7fa9ffad34b919c4500cd1607b441f7658526313 100644 --- a/interfaces/innerkits/native/BUILD.gn +++ b/interfaces/innerkits/native/BUILD.gn @@ -124,7 +124,8 @@ ohos_shared_library("remote_file_share_native") { "hilog:libhilog", ] - if (defined(global_parts_info) && defined(global_parts_info.device_manager)) { + if (defined(global_parts_info) && + defined(global_parts_info.distributedhardware_device_manager)) { external_deps += [ "device_manager:devicemanagersdk" ] defines = [ "ENABLE_DEVICE_MANAGER" ] }