[CMake] Visual Studios platform choice

Gilles Khouzam gilles.khouzam at microsoft.com
Thu Sep 8 16:24:38 EDT 2016


When Visual Studio creates a project, by default it will create it for multiple architectures. When running through CMake, only 1 platform is generated. Therefore Visual Studio shows the platform options but only the available platforms are shown. We wrote a prototype to support creating multiple platforms for Windows Store apps in CMake a while back that’s available on https://github.com/Microsoft/CMake/tree/feature/MSMultiPlatform but hasn’t been updated in some time. There are issues with it as some things don’t port well when switching architectures.

From: CMake [mailto:cmake-bounces at cmake.org] On Behalf Of Dvir Yitzchaki
Sent: Thursday, September 8, 2016 01:21
To: 'Jack Stalnaker' <jack.stalnaker at gmail.com>; cmake at cmake.org
Subject: Re: [CMake] Visual Studios platform choice

We’re generating both 32 bit and 64 bit solutions and the drop down only shows one architecture on each solution.
Checked on VS 2013 and 2015.

Regards,

Dvir Yitzchaki
Debugger Software Engineer, SDT
[cid:image001.png at 01D209C3.2089CC20]<http://www.ceva-dsp.com/>[cid:image002.png at 01D209C3.2089CC20]<http://www.ceva-dsp.com/CEVA-Software-Development-Tools> [https://g.twimg.com/twitter-bird-16x16.png] <http://twitter.com/cevadsp>  [http://img2.wikia.nocookie.net/__cb20100109182754/half-life/en/images/e/ec/YouTube_favicon.png] <http://www.youtube.com/cevadsp>  [http://developer.linkedin.com/sites/default/files/LinkedIn_Logo16px.png] <http://www.linkedin.com/company/ceva/>

From: CMake [mailto:cmake-bounces at cmake.org] On Behalf Of Jack Stalnaker
Sent: Wednesday, September 07, 2016 7:31 PM
To: cmake at cmake.org<mailto:cmake at cmake.org>
Subject: [CMake] Visual Studios platform choice

Hi,

I understand from reading this newgroup (e.g. https://cmake.org/pipermail/cmake/2013-March/053775.html) that the only way to support multiple platforms in Visual Studio is to run CMake multiple times, once for each platform.

I'm porting some linux based code to the Windows world, and the Windows dev showed me that in Visual Studio, platform choice is a pulldown menu at the top of the screen. This pulldown appears even if we run CMake without specifying a 64 bit platform. This is a bit confusing, because we've only generated a solution and project file for 32 bit. So what happens when someone selects 64 bit on the pulldown menu? What's being built?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160908/59194b55/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 1251 bytes
Desc: image001.jpg
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160908/59194b55/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 825 bytes
Desc: image002.jpg
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160908/59194b55/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1446 bytes
Desc: image003.png
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160908/59194b55/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 1263 bytes
Desc: image004.png
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160908/59194b55/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 1404 bytes
Desc: image005.png
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160908/59194b55/attachment-0005.png>


More information about the CMake mailing list