Just now, I tried doing it by adding "--vs2017" at the end, but it failed. Here's the output:
emsdk install emscripten-tag-1.38.31-64bit binaryen-tag-1.38.31-64bit --vs2017
Installing tool 'emscripten-tag-1.38.31-64bit'..
The contents of file '
https://github.com/kripken/emscripten/archive/1.38.31.zip' already exist in destination 'C:/emsdk/emscripten/tag-1.38.31', skipping.
Running CMake: ['cmake', '-G', 'Visual Studio 15 Win64', '-DCMAKE_BUILD_TYPE=Release', '-DPYTHON_EXECUTABLE=C:\\Python27\\python.exe', 'C:/emsdk/emscripten/tag-1.38.31\\tools\\optimizer']
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_CXX_COMPILER could be found.
-- Configuring incomplete, errors occurred!
See also "C:/emsdk/emscripten/tag-1.38.31_vs2017_64bit_optimizer/CMakeFiles/CMakeOutput.log".
See also "C:/emsdk/emscripten/tag-1.38.31_vs2017_64bit_optimizer/CMakeFiles/CMakeError.log".
CMake invocation failed due to exception!
Working directory: C:/emsdk/emscripten/tag-1.38.31_vs2017_64bit_optimizer
Command '['cmake', '-G', 'Visual Studio 15 Win64', '-DCMAKE_BUILD_TYPE=Release', '-DPYTHON_EXECUTABLE=C:\\Python27\\python.exe', 'C:/emsdk/emscripten/tag-1.38.31\\tools\\optimizer']' returned non-zero exit status 1
Installation failed!
When I run CMake on my own with VS2017 as the generator, it works correctly and generates the solution and project files. So why isn't it working here?