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 ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers