diff options
| author | ruki <[email protected]> | 2022-01-28 00:32:39 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-01-28 00:32:39 +0800 |
| commit | 1d36f008c9a75a0a2ac20100f4b173a0d6977e24 (patch) | |
| tree | 5d8c2310698c906272cb7f696fa48a414013be0d | |
| parent | 39a8451c2a495a06e06e46426d943bcd6423689b (diff) | |
fix empty path
| -rw-r--r-- | xmake/core/project/target.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index be787619b..d5de85ddc 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -191,6 +191,9 @@ function _instance:_copiedfiles(filetype, outputdir, pathfilter) if count == 0 then rootdir = nil end + if rootdir and rootdir:trim() == "" then + rootdir = nil + end -- remove '(' and ')' local srcpaths = copiedfile:gsub("[%(%)]", "") |
