Fix RustAddLibrary for multiple components.

Change-Id: I74a5a5a72817559766d65a485493474de5e8487c
GitOrigin-RevId: 4116bed377cf8d851d8a81e250caf236f330f1f4
This commit is contained in:
Sam Leffler 2021-06-11 12:07:04 -07:00
parent 16d547d52d
commit a859632f85

View File

@ -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()