<div dir="ltr">You can't automagically add the flag.<div><br></div><div><a href="https://cmake.org/cmake/help/latest/variable/CMAKE_GENERATOR_TOOLSET.html#variable:CMAKE_GENERATOR_TOOLSET">https://cmake.org/cmake/help/latest/variable/CMAKE_GENERATOR_TOOLSET.html#variable:CMAKE_GENERATOR_TOOLSET</a><br></div><div><br></div><div><span style="color:rgb(68,68,68);font-size:16px;text-align:justify">"The value of this variable should never be modified by project code</span>  "<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, May 25, 2017 at 8:44 AM Mike Stump <<a href="mailto:mikestump@comcast.net">mikestump@comcast.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So, it is better to automagically add the required flag than erroring out, or documenting it.<br>
<br>
</blockquote></div>