summaryrefslogtreecommitdiff
path: root/xmake/modules/private/tools/rc/parse_deps.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/private/tools/rc/parse_deps.lua')
-rw-r--r--xmake/modules/private/tools/rc/parse_deps.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmake/modules/private/tools/rc/parse_deps.lua b/xmake/modules/private/tools/rc/parse_deps.lua
index a31ce4588..778f7b03f 100644
--- a/xmake/modules/private/tools/rc/parse_deps.lua
+++ b/xmake/modules/private/tools/rc/parse_deps.lua
@@ -24,17 +24,15 @@ import("core.base.hashset")
-- normailize path of a dependecy
function _normailize_dep(dep, projectdir)
-
- -- tranlate dep path
if path.is_absolute(dep) then
dep = path.translate(dep)
else
dep = path.absolute(dep, projectdir)
end
-
- -- save it if belong to the project
if dep:startswith(projectdir) then
return path.relative(dep, projectdir)
+ else
+ return deps
end
end