Skip to content

Commit

Permalink
fix obj hashset
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Sep 27, 2024
1 parent 4d803f2 commit 2bd33b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xmake/plugins/project/cmake/cmakelists.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,9 @@ function _add_target_link_libraries(cmakelists, target, outputdir)
for _, dep in ipairs(target:orderdeps()) do
if dep:is_object() then
table.insert(object_deps, dep:name())
objectfiles_set:insert(table.unpack(dep:objectfiles()))
for _, obj in ipairs(dep:objectfiles()) do
objectfiles_set:insert(obj)
end
end
end

Expand Down

0 comments on commit 2bd33b1

Please sign in to comment.