diff options
Diffstat (limited to 'xmake/rules/xcode/framework/xmake.lua')
| -rw-r--r-- | xmake/rules/xcode/framework/xmake.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xmake/rules/xcode/framework/xmake.lua b/xmake/rules/xcode/framework/xmake.lua index 3d8137aeb..50530a61f 100644 --- a/xmake/rules/xcode/framework/xmake.lua +++ b/xmake/rules/xcode/framework/xmake.lua @@ -160,10 +160,12 @@ rule("xcode.framework") on_install(function (target) local bundledir = path.absolute(target:data("xcode.bundle.rootdir")) local installdir = target:installdir() - if not os.isdir(installdir) then - os.mkdir(installdir) + if installdir then + if not os.isdir(installdir) then + os.mkdir(installdir) + end + os.vcp(bundledir, installdir) end - os.vcp(bundledir, installdir) end) on_uninstall(function (target) |
