From ea1ed3818378496488e693bd264a520d84cdacea Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 17 Sep 2024 00:05:58 +0800 Subject: fix tmpdir conflict #5622 --- xmake/modules/package/tools/cmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/modules/package/tools/cmake.lua') 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([[ -- cgit v1.3.1