File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ function(add_executable target)
46
46
# Suppress CLI11 Encoding_inl.hpp std::wstring_convert deprecation warning
47
47
# Suppress glaze warning about warning: 'static_assert' with a user-generated message is a C++26 extension [-Wc++26-extensions]
48
48
set_property (TARGET ${wasm_target} APPEND PROPERTY COMPILE_OPTIONS -msimd128 -flto -Wno-deprecated-declarations -Wno-c++26-extensions )
49
+ set (suffix ".wasm" )
50
+ if ("$ENV{CFLAGS} " MATCHES "thread" )
51
+ set (suffix ".threads.wasm" )
52
+ set_property (TARGET ${wasm_target} PROPERTY SUFFIX ${suffix} )
53
+ endif ()
49
54
if (EMSCRIPTEN )
50
55
set_property (TARGET ${wasm_target} APPEND PROPERTY COMPILE_OPTIONS -Wno-warn-absolute-paths -DITK_WASM_NO_FILESYSTEM_IO )
51
56
kebab_to_camel (${target} targetCamel )
@@ -62,7 +67,7 @@ function(add_executable target)
62
67
if (NOT ${_is_imported} )
63
68
add_custom_command (TARGET ${target}
64
69
POST_BUILD
65
- COMMAND /usr/bin/zstd -f "$<TARGET_FILE_DIR:${target} >/$<TARGET_FILE_BASE_NAME:${target} >.wasm " -o "$<TARGET_FILE_DIR:${target} >/$<TARGET_FILE_BASE_NAME:${target} >.wasm .zst"
70
+ COMMAND /usr/bin/zstd -f "$<TARGET_FILE_DIR:${target} >/$<TARGET_FILE_BASE_NAME:${target} >${suffix} " -o "$<TARGET_FILE_DIR:${target} >/$<TARGET_FILE_BASE_NAME:${target} >${suffix} .zst"
66
71
)
67
72
endif ()
68
73
else ()
You can’t perform that action at this time.
0 commit comments