diff options
| -rw-r--r-- | xmake/core/main.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua index ca0a2ba43..a38a4fc21 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -195,6 +195,9 @@ function main._init() -- enter the project directory if os.isdir(os.projectdir()) then + if path.translate(os.projectdir()) ~= path.translate(os.curdir()) then + utils.warning("you are working in the project directory(%s)!", os.projectdir()) + end xmake._WORKING_DIR = os.cd(os.projectdir()) else xmake._WORKING_DIR = os.curdir() |
