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