<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 8 December 2017 at 16:42, Boris Kolpackov <span dir="ltr"><<a href="mailto:boris@codesynthesis.com" target="_blank">boris@codesynthesis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">Klaim - Joėl Lamotte <<a href="mailto:mjklaim@gmail.com">mjklaim@gmail.com</a>> writes:<br></span><span class="gmail-"><br>
> Meanwhile, side question related to this: I was looking for how to specify<br>
> which version of the cl compilers installed with Visual Studio to use in<br>
> one configuration. If the only way is to use different vsvarsall.bat when<br>
> building it will be problematic when working with different cls.<br>
<br>
</span>Yes, currently you have to run b from the corresponding developer command<br>
prompt. It is not ideal but there doesn't seem to be any other "sane" way<br>
to get the "environment" from VC. We could probably save the environment<br>
during configuration so that you only have to use the developer command<br>
prompt for that step. Would that help in your case?<br></blockquote><div><br></div><div>It could help but would still be problematic when juggling with a lot of different configs.</div><div>But still a progress.</div><div><br></div><div><br></div><div>Boris, at my dayjob we currently use qiBuild (which was made by people from this company who left a few years ago, we are looking at alternatives too these days).</div><div>It manage to do find the right VS but I think it relies on CMake behind. CMake asks for both generator and version of the toolset separately, so</div><div>it could be looking at the default install paths or some of the environment variables. </div><div>So maybe there is some heuristics you could extract from one of these projects assuming there is a config info of specific toolset? <br></div></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">I wanted to try to find how they do it in CMake's code this weekend but I'm occupied with something else and can't until next week,</div><div class="gmail_extra">so I'll investigate if you don't have time.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Note: if it works with standalone toolsets that vs team is currently providing, it would help a lot too.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>