diff options
| -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()) |
