summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-02-07 23:19:24 +0800
committerruki <[email protected]>2022-02-07 23:19:24 +0800
commitfcf64a67658555e3dc3ebb06045645e21de9188f (patch)
tree0111d8eebf8cc8c636c7e59a20e19ef6e8118a9f
parent3fe6979242797797d5a1f8405ddc195ba60c318a (diff)
fix rootdir
-rw-r--r--xmake/core/project/target.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index 3bf40be81..05e4a1476 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -192,7 +192,7 @@ function _instance:_copiedfiles(filetype, outputdir, pathfilter)
rootdir = nil
end
if rootdir and rootdir:trim() == "" then
- rootdir = nil
+ rootdir = "."
end
-- remove '(' and ')'
@@ -1474,7 +1474,7 @@ function _instance:headerfiles(outputdir, only_deprecated)
rootdir = nil
end
if rootdir and rootdir:trim() == "" then
- rootdir = nil
+ rootdir = "."
end
-- remove '(' and ')' first
@@ -1854,7 +1854,7 @@ function _instance:configheader(outputdir)
rootdir = nil
end
if rootdir and rootdir:trim() == "" then
- rootdir = nil
+ rootdir = "."
end
-- remove '(' and ')'