How to use emcmake cmake and pass emscripten command-line options?
Pretty new to c++ / CMake, but can\'t find anything helpful on google. So maybe the q
I think the issue is that you are overwriting the CMAKE_MODULE_PATH, which emcmake also configure. Try to replace the line by:
list(APPEND CMAKE_MODULE_PATH )
Then you just have to do "emcmake cmake" and "emmake make", it should work fine normally.
In the cmake file, you can use "if (EMSCRIPTEN)" to tweak suff just for the emscripten case, such as the compiler or linker flags