From 6083cc7462840f7195c35893c0b723bf205b14ae Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Mon, 7 Apr 2025 19:33:09 +0200 Subject: [PATCH] Add installation rule for Emscripten builds to copy cxx.wasm to bin Signed-off-by: Roberto Raggi --- src/frontend/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/frontend/CMakeLists.txt b/src/frontend/CMakeLists.txt index 88ec001d..10409ca0 100644 --- a/src/frontend/CMakeLists.txt +++ b/src/frontend/CMakeLists.txt @@ -60,6 +60,14 @@ if (CXX_INSTALL_TOOLS) TARGETS cxx EXPORT cxxTargets ) + + if (EMSCRIPTEN) + install( + FILES $/cxx.wasm + DESTINATION bin + ) + endif() + endif() add_custom_target(link_cxx_include ALL