MantisBT - CMake
View Issue Details
0015686CMakeCMakepublic2015-08-06 10:232016-03-07 09:12
D.E. Goodman-Wilson 
Gilles Khouzam 
normalfeaturealways
closedfixed 
Windows PhoneWindows10
CMake 3.3 
CMake 3.4CMake 3.4 
0015686: Windows phone projects targeting Windows 10 differ from Windows Phone 8.1 projects
Basically, some fields in the .vcxproj need to change, and some new ones added (related, but only part of the way there: https://public.kitware.com/Bug/view.php?id=15670 [^]).

Here is a link to an MSDN article detailing the differences between a Windows Phone 8.1 and Windows Universal 10 project file; it explains how the various fields in the XML file have evolved, and the specific steps that must be take to manually migrate a project.

https://msdn.microsoft.com/en-us/library/Mt148501.aspx#MigrateCPlusPlus [^]
Build a project targeting Windows Phone 8.1, using the Visual Studio 2015 generator and the following CMake directives:

set(CMAKE_SYSTEM_NAME "WindowsPhone")
set(CMAKE_SYSTEM_VERSION "8.1")
No tags attached.
related to 0015662closed Gilles Khouzam Add support for Windows/Windows Phone SDKs with Visual Studio 2015 
related to 0015670closed Gilles Khouzam Add support for setting "Windows target platform version" in VS2015 
Issue History
2015-08-06 10:23D.E. Goodman-WilsonNew Issue
2015-08-06 10:26D.E. Goodman-WilsonNote Added: 0039245
2015-08-06 10:53Brad KingAssigned To => Gilles Khouzam
2015-08-06 10:53Brad KingStatusnew => assigned
2015-08-06 10:53Brad KingRelationship addedrelated to 0015662
2015-08-06 11:17Brad KingRelationship addedrelated to 0015670
2015-10-05 13:29Brad KingNote Added: 0039510
2015-10-05 13:29Brad KingStatusassigned => resolved
2015-10-05 13:29Brad KingResolutionopen => fixed
2015-10-05 13:29Brad KingFixed in Version => CMake 3.4
2015-10-05 13:29Brad KingTarget Version => CMake 3.4
2016-03-07 09:12Robert MaynardNote Added: 0040601
2016-03-07 09:12Robert MaynardStatusresolved => closed

Notes
(0039245)
D.E. Goodman-Wilson   
2015-08-06 10:26   
THere is one additional change to the project not covered by the article, namely the names of the system libraries to link against:

change the deps from:
- <AdditionalDependencies>WindowsPhoneCore.lib;RuntimeObject.lib;PhoneAppModelHost.lib</AdditionalDependencies>

to:
+ <AdditionalDependencies>WindowsApp.lib;%(AdditionalDependencies)</AdditionalDependencies>

Notice as well that this same applies to Windows 8.1 Desktop and Universal apps—In projects targeting Windows 10, there are _only_ Universal Apps
(0039510)
Brad King   
2015-10-05 13:29   
The changes contributed in this thread:

 [Patch] Adding Windows 10 Universal app support
 http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/14201/focus=14626 [^]

should address this issue.
(0040601)
Robert Maynard   
2016-03-07 09:12   
Closing resolved issues that have not been updated in more than 4 months.