MantisBT - CMake |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0015674 | CMake | CMake | public | 2015-07-30 12:36 | 2016-02-01 09:10 |
|
Reporter | Christian Maaser | |
Assigned To | Gilles Khouzam | |
Priority | low | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | PC | OS | Windows | OS Version | |
Product Version | CMake 3.3 | |
Target Version | CMake 3.4 | Fixed in Version | CMake 3.4 | |
|
Summary | 0015674: 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 [^] |
Tags | No tags attached. |
Relationships | related to | 0015670 | closed | Gilles Khouzam | Add support for setting "Windows target platform version" in VS2015 |
|
Attached Files | cmake-3.3.0-cmake_host_system_version.patch (2,504) 2015-07-30 12:43 https://public.kitware.com/Bug/file/5497/cmake-3.3.0-cmake_host_system_version.patch Issue15674.patch (15,614) 2015-09-10 16:54 https://public.kitware.com/Bug/file/5521/Issue15674.patch |
|
Issue History |
Date Modified | Username | Field | Change |
2015-07-30 12:36 | Christian Maaser | New Issue | |
2015-07-30 12:43 | Christian Maaser | File Added: cmake-3.3.0-cmake_host_system_version.patch | |
2015-07-30 12:43 | Christian Maaser | Note Added: 0039201 | |
2015-07-30 14:12 | Brad King | Note Added: 0039204 | |
2015-07-30 14:22 | Brad King | Note Added: 0039205 | |
2015-07-30 14:22 | Brad King | Assigned To | => Brad King |
2015-07-30 14:22 | Brad King | Status | new => resolved |
2015-07-30 14:22 | Brad King | Resolution | open => fixed |
2015-07-30 14:22 | Brad King | Fixed in Version | => CMake 3.4 |
2015-07-30 14:22 | Brad King | Target Version | => CMake 3.4 |
2015-07-31 10:12 | Brad King | Relationship added | related to 0015670 |
2015-07-31 10:13 | Brad King | Note Edited: 0039205 | bug_revision_view_page.php?bugnote_id=39205#r1856 |
2015-09-10 08:39 | Brad King | Note Added: 0039390 | |
2015-09-10 08:39 | Brad King | Assigned To | Brad King => Gilles Khouzam |
2015-09-10 08:39 | Brad King | Status | resolved => assigned |
2015-09-10 08:39 | Brad King | Resolution | fixed => open |
2015-09-10 08:39 | Brad King | Fixed in Version | CMake 3.4 => |
2015-09-10 08:39 | Brad King | Target Version | CMake 3.4 => |
2015-09-10 08:40 | Brad King | Target Version | => CMake 3.4 |
2015-09-10 16:05 | Brad King | Note Added: 0039402 | |
2015-09-10 16:54 | Gilles Khouzam | File Added: Issue15674.patch | |
2015-09-18 14:21 | Brad King | Note Added: 0039442 | |
2015-09-18 14:22 | Brad King | Note Added: 0039443 | |
2015-09-21 09:03 | Brad King | Note Edited: 0039443 | bug_revision_view_page.php?bugnote_id=39443#r1909 |
2015-09-21 09:03 | Brad King | Status | assigned => resolved |
2015-09-21 09:03 | Brad King | Resolution | open => fixed |
2015-09-21 09:03 | Brad King | Fixed in Version | => CMake 3.4 |
2016-02-01 09:10 | Robert Maynard | Note Added: 0040411 | |
2016-02-01 09:10 | Robert Maynard | Status | resolved => closed |
Notes |
|
(0039201)
|
Christian Maaser
|
2015-07-30 12:43
|
|
I wrote a patch against 3.3.0, which correctly sets the Windows version based on RtlGetVersion. In case the function fails it falls back to using the old behavior. This needs some testing and also might break existing projects, which rely on the previously reported wrong version number.
Also note that I decided to include to build number in the version string (e.g. "10.0.10240" on latest Windows 10). |
|
|
(0039204)
|
Brad King
|
2015-07-30 14:12
|
|
|
|
(0039205)
|
Brad King
|
2015-07-30 14:22
(edited on: 2015-07-31 10:13) |
|
|
|
(0039390)
|
Brad King
|
2015-09-10 08:39
|
|
|
|
(0039402)
|
Brad King
|
2015-09-10 16:05
|
|
|
|
(0039442)
|
Brad King
|
2015-09-18 14:21
|
|
|
|
(0039443)
|
Brad King
|
2015-09-18 14:22
(edited on: 2015-09-21 09:03) |
|
|
|
(0040411)
|
Robert Maynard
|
2016-02-01 09:10
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|