Skip to content

Commit aa7c63b

Browse files
xuxin930xiaoxiang781216
authored andcommitted
cmake(bugfix):fix WASM install bin do not define error
Signed-off-by: xuxin19 <[email protected]>
1 parent fb367c9 commit aa7c63b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tools/Wasm/WASI-SDK.cmake

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,13 @@ function(wasm_add_application)
330330
set(APP_INSTALL_NAME ${APP_NAME}.xip)
331331
endif()
332332
endif()
333-
else()
333+
endif()
334+
335+
if(NOT APP_INSTALL_BIN)
334336
set(APP_INSTALL_BIN ${APP_NAME}.wasm)
335-
if(NOT APP_INSTALL_NAME)
336-
set(APP_INSTALL_NAME ${APP_NAME}.wasm)
337-
endif()
337+
endif()
338+
if(NOT APP_INSTALL_NAME)
339+
set(APP_INSTALL_NAME ${APP_NAME}.wasm)
338340
endif()
339341
# install WASM BIN
340342
add_custom_target(

0 commit comments

Comments
 (0)