[CMake] How to specify VS2017 compilers when on VS2019

Michael Jackson mike.jackson at bluequartz.net
Fri Aug 16 14:19:27 EDT 2019


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
    




More information about the CMake mailing list