[cmake-developers] [CMake 0015674]: Windows: Correctly determine Windows version for CMAKE_HOST_SYSTEM_VERSION
Mantis Bug Tracker
mantis at public.kitware.com
Thu Jul 30 12:36:02 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15674
======================================================================
Reported By: Christian Maaser
Assigned To:
======================================================================
Project: CMake
Issue ID: 15674
Category: CMake
Reproducibility: always
Severity: minor
Priority: low
Status: new
======================================================================
Date Submitted: 2015-07-30 12:36 EDT
Last Modified: 2015-07-30 12:36 EDT
======================================================================
Summary: Windows: Correctly determine Windows version for
CMAKE_HOST_SYSTEM_VERSION
Description:
cmake is currently using the deprecated Windows API function GetVersionEx, which
reports wrong information for versions later than WindowsXP. Instead, cmake
should make use of RtlGetVersion, which works as expected on all versions of
Windows (since Windows 2000).
Steps to Reproduce:
Compare ${CMAKE_HOST_SYSTEM_VERSION} with the output of the "ver" console
command.
Additional Information:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724451(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/windows/hardware/ff561910(v=vs.85).aspx
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-07-30 12:36 Christian MaaserNew Issue
======================================================================
More information about the cmake-developers
mailing list