summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-09-17 00:05:58 +0800
committerruki <[email protected]>2024-09-17 00:05:58 +0800
commitea1ed3818378496488e693bd264a520d84cdacea (patch)
tree1c584debabe2e8debdb3db9ae5bec53cc7f20571
parent090c8cc0ce303bdb09c3b3bf9772e5d2b82f7ddf (diff)
fix tmpdir conflict #5622
-rw-r--r--xmake/modules/package/tools/cmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index f47f69482..e0535bdac 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -796,7 +796,7 @@ function _get_default_flags(package, configs, buildtype, opt)
local cachekey = buildtype .. package:plat() .. package:arch()
local cmake_default_flags = _g.cmake_default_flags and _g.cmake_default_flags[cachekey]
if not cmake_default_flags then
- local tmpdir = path.join(os.tmpdir() .. ".dir", package:name(), package:mode())
+ local tmpdir = path.join(os.tmpfile() .. ".dir", package:displayname(), package:mode())
local dummy_cmakelist = path.join(tmpdir, "CMakeLists.txt")
io.writefile(dummy_cmakelist, format([[