I created a cmake project through MSVS2019 and need to set Target Platform Version to 8.1 (instead of the default 10.0) and Platform Toolset to v140 (as opposed to 142).
Here are the two settings if I were working with a msvs project (instead of cmake in msvs2019):
The documentation for cmake on msvs2019 is pretty sparse and wish there was some kind of mapping between visual studio project settings and cmake.