summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/project.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-07-02 15:31:16 +0800
committerruki <[email protected]>2015-07-02 15:31:16 +0800
commit9f1e12860e7590f4301a1cb428b44534505914b2 (patch)
tree75a8aed94a32ec8df7ec6bb799759c66fcf1d9d7 /xmake/scripts/base/project.lua
parentf69c00a7ddcb835fe52169fa9b7e097680fba5c1 (diff)
fix mtime file pathes
Diffstat (limited to 'xmake/scripts/base/project.lua')
-rw-r--r--xmake/scripts/base/project.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/scripts/base/project.lua b/xmake/scripts/base/project.lua
index c020e7190..4063f9de0 100644
--- a/xmake/scripts/base/project.lua
+++ b/xmake/scripts/base/project.lua
@@ -263,7 +263,7 @@ function project._api_add_subdirs(env, ...)
end
-- get mtime of the file
- project._MTIMES[file] = os.mtime(file)
+ project._MTIMES[path.relative(file, xmake._PROJECT_DIR)] = os.mtime(file)
end
end
end
@@ -322,7 +322,7 @@ function project._api_add_subfiles(env, ...)
end
-- get mtime of the file
- project._MTIMES[file] = os.mtime(file)
+ project._MTIMES[path.relative(file, xmake._PROJECT_DIR)] = os.mtime(file)
end
end
end
@@ -621,7 +621,7 @@ function project._make_targets(configs)
-- init mtime for the project file
project._MTIMES = project._MTIMES or {}
- project._MTIMES[xmake._PROJECT_FILE] = os.mtime(xmake._PROJECT_FILE)
+ project._MTIMES[path.relative(xmake._PROJECT_FILE, xmake._PROJECT_DIR)] = os.mtime(xmake._PROJECT_FILE)
-- get the mtimes for configure
local mtimes_config = config.get("__mtimes")