[CMake] How to specify VS2017 compilers when on VS2019

Kyle Edwards kyle.edwards at kitware.com
Fri Aug 16 14:09:42 EDT 2019


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