In your own CMake file, pass

set(CMAKE_EXECUTABLE_SUFFIX ".html")

See here for an example:
https://github.com/kripken/emscripten/blob/master/tests/cmake/target_html/CMakeLists.txt#L68

2014-11-24 12:47 GMT+02:00 awt <[email protected]>:

> Hi,
>
> I am trying to build Emscripten using CMake and realized that the output
> is set to .js in Emscripten.cmake. I was trying to change the output to
> .html by editing my CMakeLists.txt as follows:
>
> add_executable(helloworld.html ${sources})
>
> Unfortunately, the output will still stay as .js because
> the CMAKE_EXECUTABLE_SUFFIX macro is set in Emscripten.cmake. What is the
> recommended way to override the suffix other than to edit Emscripten.cmake
> manually?
>
> --
> 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].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to