diff options
| author | star9029 <[email protected]> | 2024-09-27 13:58:00 +0800 |
|---|---|---|
| committer | star9029 <[email protected]> | 2024-09-27 13:58:00 +0800 |
| commit | 2bd33b1ea96413be391a57dadf79596467ce4791 (patch) | |
| tree | dc6edd280cad6f386b956e5c211f528cb769b095 | |
| parent | 4d803f21b3d542ac6af25135b1351a3c8b6c691e (diff) | |
fix obj hashset
| -rw-r--r-- | xmake/plugins/project/cmake/cmakelists.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua index b5b6f6b26..3002079a0 100644 --- a/xmake/plugins/project/cmake/cmakelists.lua +++ b/xmake/plugins/project/cmake/cmakelists.lua @@ -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 |
