Skip to content

Commit 0a95fe9

Browse files
committed
refactor(cmakelists): define target_objectfiles library as INTERFACE when it doesn't contain IMPORTED_OBJECTS property
1 parent 866232d commit 0a95fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmake/plugins/project/cmake/cmakelists.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ function _add_target_link_libraries(cmakelists, target, outputdir)
10941094

10951095
if #object_deps ~= 0 then
10961096
if not has_links then
1097-
cmakelists:print("add_library(target_objectfiles_%s OBJECT IMPORTED GLOBAL)", key)
1097+
cmakelists:print("add_library(target_objectfiles_%s INTERFACE)", key)
10981098
has_links = true
10991099
end
11001100
cmakelists:print("target_link_libraries(target_objectfiles_%s INTERFACE", key)

0 commit comments

Comments
 (0)