summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/detect/sdks/find_hdk.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_hdk.lua b/xmake/modules/detect/sdks/find_hdk.lua
index 99a9ad60b..18acc73c1 100644
--- a/xmake/modules/detect/sdks/find_hdk.lua
+++ b/xmake/modules/detect/sdks/find_hdk.lua
@@ -32,7 +32,11 @@ function _find_hdkdir(sdkdir)
if not sdkdir then
if not sdkdir then
if is_host("macosx") then
- sdkdir = find_directory("native", "~/Library/Huawei/Sdk/*/*")
+ local paths = {
+ "~/Library/OpenHarmony/Sdk/*",
+ "~/Library/Huawei/Sdk/*/*" -- for old version, deprecated
+ }
+ sdkdir = find_directory("native", paths)
elseif is_host("windows") then
sdkdir = find_directory("native", "~/Huawei/Sdk/*/*")
end