From aa7c63bfe1598d476b0fde08e5960e7c28dd1590 Mon Sep 17 00:00:00 2001 From: xuxin19 Date: Tue, 10 Dec 2024 19:45:02 +0800 Subject: [PATCH] cmake(bugfix):fix WASM install bin do not define error Signed-off-by: xuxin19 --- tools/Wasm/WASI-SDK.cmake | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/Wasm/WASI-SDK.cmake b/tools/Wasm/WASI-SDK.cmake index ca340d06e..9230d844c 100644 --- a/tools/Wasm/WASI-SDK.cmake +++ b/tools/Wasm/WASI-SDK.cmake @@ -330,11 +330,13 @@ function(wasm_add_application) set(APP_INSTALL_NAME ${APP_NAME}.xip) endif() endif() - else() + endif() + + if(NOT APP_INSTALL_BIN) set(APP_INSTALL_BIN ${APP_NAME}.wasm) - if(NOT APP_INSTALL_NAME) - set(APP_INSTALL_NAME ${APP_NAME}.wasm) - endif() + endif() + if(NOT APP_INSTALL_NAME) + set(APP_INSTALL_NAME ${APP_NAME}.wasm) endif() # install WASM BIN add_custom_target(