The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=15945 
====================================================================== 
Reported By:                Gehua Yang
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15945
Category:                   (No Category)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-01-29 13:51 EST
Last Modified:              2016-01-29 13:51 EST
====================================================================== 
Summary:                    "Target Platform Version" Option in Visual Sutio
2015
Description: 
I am trying to compile code and generate binaries that's compatible with Windows
7/8/8.1.  Following MSDN's suggestion, I can set "Target Platform Version" under
the General tag to use SDK 8.1, which works fine for me (see screenshot).  The
real problem is this change is not preserved after a CMake run.  

This issue is very similar to Issue https://cmake.org/Bug/view.php?id=15686 and
Issue https://cmake.org/Bug/view.php?id=15670.  I read through the report under
both and learned that one can use CMAKE_SYSTEM_VERSION to change the "Target
Platform Version" value across all projects in a VS solution.  

Perhaps it is not a bug and simply caused by not doing things right. But I
cannot find any more documentation related to this on web. My apology in
advance! 
However, I tried to do that with CMake 3.4.3 (latest release from cmake.org),
but the projects generated does not contain this TargetPlatformVersion tag and
hence its value is still defaulted to 10.0.10240.0.

Steps to Reproduce: 
1. In CMake GUI, set CMAKE_SYSTEM_VERSION to "8.1". Finish Cmake.  
2. Open Visual Studio 2015 and open the property page of any project. 
3. Go to "General" tab. 



Additional Information: 
Related to Issue https://cmake.org/Bug/view.php?id=15686 and Issue
https://cmake.org/Bug/view.php?id=15670
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-01-29 13:51 Gehua Yang     New Issue                                    
2016-01-29 13:51 Gehua Yang     File Added: t.png                            
======================================================================

-- 

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

Reply via email to