<div dir="ltr">can just specify the 2017 generator, 2019 will load an build it just fine.<div>If 2017 is still opening when you double-click a solution, change your default handler for .sln files to 2019.</div><div><br></div><div>Again, 2019 can build projects as is for 2017, 2015, etc...</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 16, 2019 at 11:19 AM Michael Jackson <<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Why can't I do -T v141?<br>
<br>
--<br>
Mike Jackson <br>
<br>
On 8/16/19, 2:09 PM, "Kyle Edwards" <<a href="mailto:kyle.edwards@kitware.com" target="_blank">kyle.edwards@kitware.com</a>> wrote:<br>
<br>
On Fri, 2019-08-16 at 13:54 -0400, Michael Jackson wrote:<br>
> What are the values to the -T argument that are to be used so that I<br>
> can use VS2019 but have the 2017 compilers?<br>
<br>
Rather than using a -T argument, you want to set the CC environment<br>
variable or -DCMAKE_C_COMPILER on the command line (likewise for CXX<br>
and CMAKE_CXX_COMPILER.)<br>
<br>
Kyle<br>
<br>
<br>
<br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div>