diff options
author | Brad King <brad.king@kitware.com> | 2022-07-22 19:34:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-07-25 18:27:24 (GMT) |
commit | ee047a68f27d9636d681d05252257da636b616a2 (patch) | |
tree | 6577a86cca6b947d63254e2d803ae550296b3c20 /Source/cmSystemTools.h | |
parent | 7ed8c2de6a755bc05d43ee1d5caf566b14c9209a (diff) | |
download | CMake-ee047a68f27d9636d681d05252257da636b616a2.zip CMake-ee047a68f27d9636d681d05252257da636b616a2.tar.gz CMake-ee047a68f27d9636d681d05252257da636b616a2.tar.bz2 |
cmSystemTools: Factor out method to get Windows OS version
Factor the implementation out of `cmGlobalGenerator`.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 5f7a5ec..ec650f7 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -509,6 +509,14 @@ public: }; static WindowsFileRetry GetWindowsFileRetry(); static WindowsFileRetry GetWindowsDirectoryRetry(); + + struct WindowsVersion + { + unsigned int dwMajorVersion; + unsigned int dwMinorVersion; + unsigned int dwBuildNumber; + }; + static WindowsVersion GetWindowsVersion(); #endif /** Get the real path for a given path, removing all symlinks. |