diff --git a/cmake/QtExecutableHelpers.cmake b/cmake/QtExecutableHelpers.cmake index ee5e7a1f16..78e0c671af 100644 --- a/cmake/QtExecutableHelpers.cmake +++ b/cmake/QtExecutableHelpers.cmake @@ -140,7 +140,6 @@ function(qt_internal_add_executable name) if(WASM) qt_internal_wasm_add_finalizers("${name}") - _qt_internal_wasm_add_target_helpers("${name}") endif() # Check if target needs to be excluded from all target. Also affects qt_install. diff --git a/cmake/QtWasmHelpers.cmake b/cmake/QtWasmHelpers.cmake index 07de3751ef..b1d0c5e877 100644 --- a/cmake/QtWasmHelpers.cmake +++ b/cmake/QtWasmHelpers.cmake @@ -104,6 +104,7 @@ endfunction() function(qt_internal_wasm_add_finalizers target) qt_add_list_file_finalizer(_qt_internal_add_wasm_extra_exported_methods ${target}) + qt_add_list_file_finalizer(_qt_internal_wasm_add_target_helpers ${target}) endfunction()