Hi Robert,

For applications you might not need the VS_WINRT_COMPONENT, but for libraries 
setting it vs not does have some differences. The main one being that you 
produce a WinMD file when set. If you look at the new project dialog when 
creating a Windows Store component, you have 2 types DLL & Windows Runtime 
Component, this is what the VS_WINRT_COMPONENT flag defines. By default we want 
to keep the same functionality that we had before and only turn DLLs into WinRT 
components when you explicitely set it.

I've got it on my agenda to update the VSWinStorePhone project to be a little 
more complicated and incorporate multiple simple components which should test 
this functionality a little more.

-----Original Message-----
From: Brad King [mailto:[email protected]] 
Sent: Thursday, January 29, 2015 2:11 PM
To: Robert Goulet
Cc: [email protected]; Gilles Khouzam
Subject: Re: [cmake-developers] Windows Store generated solution also 
containing win32 console app?

On 01/29/2015 04:52 PM, Robert Goulet wrote:
> That sounds silly, but how do I merge patches with git?

Read up on interactive rebase: "git rebase -i".

> Not setting VS_WINRT_COMPONENT on an executable at all, when system 
> name is 'WindowsStore', will produce an executable with everything 
> properly set as a Windows Store app. I don't use VS_WINRT_COMPONENT 
> (except for my new special case to turn it off explicitly) and 
> everything seems to work properly. Essentially, if you set system name 
> to 'WindowsStore', then all projects are assumed to have the Windows 
> Store Support turned ON in Visual Studio.

Hmm...I'm reconsidering the explicit OFF approach.

Gilles, Tests/VSWinStorePhone/CMakeLists.txt does:

 set_property(TARGET ${EXE_NAME} PROPERTY VS_WINRT_COMPONENT TRUE)

What does this cover?  What does it mean to have this on Store?

Thanks,
-Brad

-- 

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