Skip to content

Commit

Permalink
edit 'share/cmake/Modules/rack-sdk.cmake' - use object libs as source…
Browse files Browse the repository at this point in the history
… files instead of linked libs

Signed-off-by: StoneyDSP <nathanjhood@googlemail.com>
  • Loading branch information
nathanjhood committed Dec 20, 2024
1 parent 4d1b245 commit a377db3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions share/cmake/Modules/rack-sdk.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -398,13 +398,13 @@ function(vcvrack_add_module name)
add_library(${slug}::${name} ALIAS ${name})
if(DEFINED ARG_BRAND)
add_library(${brand}::${slug}::${name} ALIAS ${name})
target_link_libraries(plugin PRIVATE ${brand}::${slug}::${name})
else()
target_link_libraries(plugin PRIVATE ${slug}::${name})
# target_link_libraries(plugin PRIVATE ${brand}::${slug}::${name})
# else()
# target_link_libraries(plugin PRIVATE ${slug}::${name})
endif()

# either use the two 'target_link_libraries()' above, or use this:
# vcvrack_add_sources(plugin PRIVATE $<TARGET_OBJECTS:${name}>)
vcvrack_add_sources(plugin PRIVATE $<TARGET_OBJECTS:${name}>)

target_link_libraries(${name}
PUBLIC
Expand Down

0 comments on commit a377db3

Please sign in to comment.