diff --git a/premake5-deps.lua b/premake5-deps.lua index 900af5bc..02ef5548 100644 --- a/premake5-deps.lua +++ b/premake5-deps.lua @@ -283,7 +283,7 @@ local function cmake_build(dep_folder, is_32, extra_cmd_defs, c_flags_init, cxx_ end if #toolchain_file_content > 0 then - local toolchain_file = path.join(dep_base, 'toolchain_' .. tostring(is_32) .. '_' .. _ACTION .. '_' .. _OS .. '.precmt') + local toolchain_file = path.join(dep_base, 'toolchain_' .. tostring(is_32) .. '_' .. _ACTION .. '_' .. os.target() .. '.precmt') if not io.writefile(toolchain_file, toolchain_file_content) then error("failed to write cmake toolchain") return