[cmake-developers] Retain platform name when generating VS projects

Robert Goulet Robert.Goulet at autodesk.com
Tue Aug 18 10:12:39 EDT 2015


Hi all,

Here at the office we added some code to CMake to be able to support closed platforms when generating Visual Studio project files.

The changes weren't complicated; it was just a matter to retain the platform name upon generation. Essentially, we replace the "Win32" or "x64" string in the platform name of the Visual Studio project, and set compile/link options from the command line flags. That is possible because the vendors of these closed platforms provide a Visual Studio integration, which work very nicely.

We are wondering if there's a way to do this without having to change the CMake source code? Would it be possible do achieve this from a CMake module? Or perhaps it would be a good addition to CMake? Thoughts?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150818/368513e4/attachment.html>


More information about the cmake-developers mailing list