summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2018-02-23 00:59:55 +0800
committerruki <[email protected]>2018-02-22 23:59:34 +0800
commit608635444ae0cfe42924111fe9b856730fa4fdc3 (patch)
tree4625488778179975d90795ebed0ff1ea84006db4
parent0c051195985a1f43311d1d29c756a6b02531799d (diff)
improve project dir tips
-rw-r--r--xmake/core/main.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua
index a38a4fc21..3455c5f64 100644
--- a/xmake/core/main.lua
+++ b/xmake/core/main.lua
@@ -196,7 +196,8 @@ 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())
+ 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())
end
xmake._WORKING_DIR = os.cd(os.projectdir())
else