hi, i have been putting together an opengl application and recently i got to know about Emscripten and wasm, so i got to work to add support for wasm. i got most of the things working thanks to the demo[2]. most of the examples (in [2] and elsewhere on the internet) append to `CMAKE_EXE_LINKER_FLAGS` the wasm specific linker flags including `--preload-file ... `. i read somewhere while learning cmake "we shouldn't modify CMAKE_EXE_LINKER_FLAGS directly".. don't remember where i read that.
so i tried using `target_link_options` but the files don't load and the .data file isn't created either. i wonder if there's a better way to set these flags than directly appending to CMAKE_EXE_LINKER_FLAGS and i also wonder why target_link_options doesn't work. i will really appreciate some help. i asked this question on an old github issue [3] as well, then got the idea of writing to the mailing list. regards sahil gautam [1]: https://codeberg.org/printfdebugging/learnopengl [2]: https://github.com/pongasoft/emscripten-glfw/blob/master/test/demo/CMakeLists.txt [3]: https://github.com/emscripten-core/emscripten/issues/4398#issuecomment-3652385357 -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/51dc3253-10d8-4d20-a604-210ab219910cn%40googlegroups.com.
