[CMake] How to specify VS2017 compilers when on VS2019

Robert Maynard robert.maynard at kitware.com
Tue Aug 20 10:36:00 EDT 2019


You can use that method so you get the IDE features of VS2019 but the
VS2017 compiler.

On Fri, Aug 16, 2019 at 2:19 PM Michael Jackson
<mike.jackson at bluequartz.net> wrote:
>
> Why can't I do -T v141?
>
> --
> Mike Jackson
>
> On 8/16/19, 2:09 PM, "Kyle Edwards" <kyle.edwards at kitware.com> wrote:
>
>     On Fri, 2019-08-16 at 13:54 -0400, Michael Jackson wrote:
>     > What are the values to the -T argument that are to be used so that I
>     > can use VS2019 but have the 2017 compilers?
>
>     Rather than using a -T argument, you want to set the CC environment
>     variable or -DCMAKE_C_COMPILER on the command line (likewise for CXX
>     and CMAKE_CXX_COMPILER.)
>
>     Kyle
>
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list