diff options
| author | ruki <[email protected]> | 2021-09-29 00:51:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-09-29 00:51:53 +0800 |
| commit | 88eda991bfd54b709cda4eb72be1665ad6ce85ef (patch) | |
| tree | ddd328d9c0c071c14999194477d632863462a5e3 /xmake/modules/private | |
| parent | 169141eaa2158281f80aca5c30e17c9d1ace52d7 (diff) | |
add with cmakelists
Diffstat (limited to 'xmake/modules/private')
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/install.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua index 9dcbc537b..fac545f8e 100644 --- a/xmake/modules/private/action/require/impl/actions/install.lua +++ b/xmake/modules/private/action/require/impl/actions/install.lua @@ -137,7 +137,10 @@ function main(package) -- enter the working directory local oldir = nil - if #package:urls() > 0 then + local sourcedir = package:sourcedir() + if sourcedir then + oldir = os.cd(sourcedir) + elseif #package:urls() > 0 then -- only one root directory? skip it local filedirs = os.filedirs(path.join(workdir, "source", "*")) if #filedirs == 1 and os.isdir(filedirs[1]) then |
