MCPcopy Create free account
hub / github.com/Kitware/CMake / VSIsWindows11OrGreater

Function VSIsWindows11OrGreater

Source/cmGlobalVisualStudioVersionedGenerator.cxx:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74static bool VSIsWindows11OrGreater()
75{
76 cmSystemTools::WindowsVersion const windowsVersion =
77 cmSystemTools::GetWindowsVersion();
78 return (windowsVersion.dwMajorVersion > 10 ||
79 (windowsVersion.dwMajorVersion == 10 &&
80 windowsVersion.dwMinorVersion > 0) ||
81 (windowsVersion.dwMajorVersion == 10 &&
82 windowsVersion.dwMinorVersion == 0 &&
83 windowsVersion.dwBuildNumber >= 22000));
84}
85
86static std::string VSHostPlatformName()
87{

Callers 1

FindMSBuildCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…