diff options
| author | ruki <[email protected]> | 2019-07-13 00:52:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-07-12 23:16:28 +0800 |
| commit | df0db77c2455e15a436461c0b59e3e757651a9d2 (patch) | |
| tree | 734d0cdcaa0fa925accd59ea32011fc605dfa9a8 | |
| parent | 396644eb9b728969f9bab264aa9bb0eb338d913a (diff) | |
improve tips for checking workdir
| -rw-r--r-- | xmake/actions/config/main.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua index 611ecaf1a..fe81929dd 100644 --- a/xmake/actions/config/main.lua +++ b/xmake/actions/config/main.lua @@ -157,8 +157,8 @@ function main() end end - -- enter the project directory - if os.isdir(os.projectdir()) then + -- check the working directory + if not option.get("project") and not option.get("file") and os.isdir(os.projectdir()) then if path.translate(os.projectdir()) ~= path.translate(os.workingdir()) then utils.warning([[You are working in the project directory(%s) and you can also force to build in current directory via run `xmake -P .`]], os.projectdir()) |
