Problem: Differences in detected default WindowsSDK on two different machines

Indeed, that is the case. One version has Windows 10 OS, the other has Windows Server 2012, in which case CMake does not select Windows 10 SDK by default. So the only solution would be to set CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION, even though new projects that are created via the VS IDE choose a Windows10SDK (even on Windows Server 2012)? I would assume that the default behavior of CMake should rather follow the VS IDE defaults… What do you think?

Thanks, sophonet.