summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/project/target.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index 8e9e62ff4..729f137b4 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -1143,6 +1143,7 @@ function _instance:autogenfile(sourcefile, opt)
if path.is_absolute(relativedir) and os.host() == "windows" then
-- remove C:\\ and whitespaces
-- e.g. C:\\Program Files (x64)\\xxx\Windows.h
+ -- @see https://github.com/xmake-io/xmake/issues/3021
relativedir = hash.uuid4(relativedir):gsub("%-", ""):lower()
end
relativedir = relativedir:gsub("%.%.", "__")