Skip to content

Commit

Permalink
edit 'rack-sdk.cmake' - prefer target lnk libs instead of target sources
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan <nathanjhood@googlemail.com>
  • Loading branch information
nathanjhood authored Jan 6, 2025
1 parent 6d74b8d commit fc96101
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 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}>)
## either use the two 'target_link_libraries()' above, or use this:
# vcvrack_add_sources(plugin PRIVATE $<TARGET_OBJECTS:${name}>)

target_link_libraries(${name}
PUBLIC
Expand Down

0 comments on commit fc96101

Please sign in to comment.