--vs2017 instead of -vs2017? At least the double-dash is what the emsdk help says, I haven't actually tried using it yet (it may still use the wrong generator name as you noticed). May be worth it writing a ticket or provide a PR here:
https://github.com/emscripten-core/emsdk/ On Friday, 10 May 2019 13:14:11 UTC+2, Osman Zakir wrote: > > How do I change the command the EMSDK runs when invoking CMake to build a > tool? I want to have it use VS2017 or 2019 instead of VS2015. > > I tried this: > >> emsdk install emscripten-tag-1.38.31-64bit binaryen-tag-1.38.31-64bit >> vs-tool-0.9.4 -vs2017 > > > But it still keeps doing this: > >> Running CMake: ['cmake', '-G', 'Visual Studio 14 Win64', >> '-DCMAKE_BUILD_TYPE=Release', >> '-DPYTHON_EXECUTABLE=C:\\Python27\\python.exe', >> 'C:/emsdk/emscripten/tag-1.38.31\\tools\\optimizer'] > > > (note the "Visual Studio 14 Win64" -- which isn't even correct since it > has to be "Visual Studio 14 2015 Win64" to correctly invoke VS2015 for x64 > platforms). > > Also note that CMake gives this warning when the flags 'PYTHON_EXECUTABLE" > and "CMAKE_BUILD_TYPE are used when the EMSDK tries to build tools using > CMake: > >> CMake Warning: >> Manually-specified variables were not used by the project: >> >> CMAKE_BUILD_TYPE >> PYTHON_EXECUTABLE > > > > > -- 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 on the web visit https://groups.google.com/d/msgid/emscripten-discuss/6682f5a9-cdea-4685-98c7-96197597dc76%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
