From fc96101baa8396e17163e7b2b68659911c692ed7 Mon Sep 17 00:00:00 2001 From: Nathan Date: Mon, 6 Jan 2025 01:15:03 +0100 Subject: [PATCH] edit 'rack-sdk.cmake' - prefer target lnk libs instead of target sources Signed-off-by: Nathan --- share/cmake/Modules/rack-sdk.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/cmake/Modules/rack-sdk.cmake b/share/cmake/Modules/rack-sdk.cmake index 115b60d..c038772 100644 --- a/share/cmake/Modules/rack-sdk.cmake +++ b/share/cmake/Modules/rack-sdk.cmake @@ -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 $) + ## either use the two 'target_link_libraries()' above, or use this: + # vcvrack_add_sources(plugin PRIVATE $) target_link_libraries(${name} PUBLIC