From aac44cea267e6c7d521385a5ff635eb8c0d9919d Mon Sep 17 00:00:00 2001 From: Russell Greene Date: Fri, 22 Sep 2023 23:03:11 +0000 Subject: [PATCH] Make --target link arg non-local --- cmake/Corrosion.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Corrosion.cmake b/cmake/Corrosion.cmake index 152af2c2..f3013e78 100644 --- a/cmake/Corrosion.cmake +++ b/cmake/Corrosion.cmake @@ -779,7 +779,7 @@ function(_add_cargo_build out_cargo_build_out_dir) # Skip adding the linker argument, if the linker is explicitly set, since the # explicit_linker_property will not be set when this function runs. # Passing this rustflag is necessary for clang. - corrosion_add_target_local_rustflags("${target_name}" "$<$:${rustflag_linker_arg}>") + corrosion_add_target_rustflags("${target_name}" "$<$:${rustflag_linker_arg}>") endif() message(DEBUG "TARGET ${target_name} produces byproducts ${byproducts}")