vc143, detected vc142

what is the command to define vc142?
cmake -G generator?