From a859632f85c2695e61702f58b9abc2ef196a58c4 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Fri, 11 Jun 2021 12:07:04 -0700 Subject: [PATCH] Fix RustAddLibrary for multiple components. Change-Id: I74a5a5a72817559766d65a485493474de5e8487c GitOrigin-RevId: 4116bed377cf8d851d8a81e250caf236f330f1f4 --- apps/system/rust.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/system/rust.cmake b/apps/system/rust.cmake index 26f218b..a95a4f3 100644 --- a/apps/system/rust.cmake +++ b/apps/system/rust.cmake @@ -31,7 +31,7 @@ function(RustAddLibrary lib_name) endif() add_custom_target( - ${libmain}_custom + ${lib_name}_custom BYPRODUCTS ${RUST_BUILD_DIR}/${RUST_LIB_FILENAME} ${USES_TERMINAL_DEBUG} @@ -49,5 +49,5 @@ function(RustAddLibrary lib_name) TARGET ${lib_name} PROPERTY IMPORTED_LOCATION "${RUST_BUILD_DIR}/${RUST_LIB_FILENAME}" ) - add_dependencies(${lib_name} ${libmain}_custom) + add_dependencies(${lib_name} ${lib_name}_custom) endfunction()