[cmake-developers] [CMake 0015930]: MSVC project switched to Windows XP toolset won't compile

Mantis Bug Tracker mantis at public.kitware.com
Thu Jan 21 11:36:43 EST 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15930 
====================================================================== 
Reported By:                Bruce Pascoe
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15930
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-01-21 11:36 EST
Last Modified:              2016-01-21 11:36 EST
====================================================================== 
Summary:                    MSVC project switched to Windows XP toolset won't
compile
Description: 
MSVC projects created by CMake explicitly add the detected Windows SDK to the
include paths.  Normally this doesn't cause an issue, however if the project's
Platform Toolset is then switched from "Visual Studio 201x" to "Visual Studio
201x - Windows XP" it will no longer compile.

The cause of this is that the Windows XP toolchain uses a different SDK version,
installed in a different location from the default.

The project can be made to compile at this point by removing the Windows SDK
from the include paths, which allows the IDE (actually MSBuild) to select the
correct SDK on its own.

Steps to Reproduce: 
* Generate a Visual Studio project using CMake
* Open Project Properties -> General in MSVC
* Change the Platform Toolset to the Windows XP version.
* Try to build the project.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-01-21 11:36 Bruce Pascoe   New Issue                                    
======================================================================



More information about the cmake-developers mailing list