Closed PhantomCloak closed 9 months ago
Hi,
thanks for the PR !
I also encountered the issue indeed while adding wasm is part of the CI. It was fixed by adding the flag directly to the sample_framwork target. It avoids adding it to all executables.
Many thanks! Guillaume
Summary
This PR resolves the issue where building samples for Emscripten failed due to GLFW not being linked in the linking stage. While users can circumvent this problem by manually adding -sUSE_GLFW=2, this workaround may not be obvious to all users. Therefore, integrating this flag into the existing samples eliminates the need for any manual flags in the Emscripten build process.