Set Windows SDK version in CMakePresets.json

Braden McDaniel
1
Reputation point
Using Visual Studio's built-in CMake support, how does one specify the Windows SDK version that should be used (in CMakePresets.json
)?
I'm trying to use the v140 toolchain; that is:
"toolset": {
"value": "v140",
"strategy": "external"
},
But Visual Studio wants to use the latest SDK installed (even though the last Windows 10 SDK that is supposed to work with the v140 toolchain is 14393).
{count} votes