Skip to content

Commit

Permalink
Use target object linking for embedded libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Nov 4, 2024
1 parent 4860ccb commit 0e92b6c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,6 @@ target_sources(
include/bare/module.h
include/bare/target.h
include/bare/version.h
PUBLIC
$<TARGET_OBJECTS:uv>
$<TARGET_OBJECTS:utf>
$<TARGET_OBJECTS:napi>
$<TARGET_OBJECTS:log>
$<TARGET_OBJECTS:url>
$<TARGET_OBJECTS:base64>
$<TARGET_OBJECTS:hex>
PRIVATE
src/addon.c
src/addon.h
Expand All @@ -209,6 +201,14 @@ target_link_libraries(
bare
INTERFACE
$<TARGET_PROPERTY:uv,INTERFACE_LINK_LIBRARIES>
PRIVATE
$<TARGET_OBJECTS:uv>
$<TARGET_OBJECTS:utf>
$<TARGET_OBJECTS:napi>
$<TARGET_OBJECTS:log>
$<TARGET_OBJECTS:url>
$<TARGET_OBJECTS:base64>
$<TARGET_OBJECTS:hex>
PUBLIC
utf
napi
Expand Down

0 comments on commit 0e92b6c

Please sign in to comment.