[cmake-developers] QMake and Visual Studios...

Stephen Kelly steveire at gmail.com
Sat Sep 29 03:07:49 EDT 2012


This, from a Qt list, is probably of interest to CMake too.

BRM wrote:

> I'm updating compilers on my virtual machines and just installed VS2012,
> namely to test to see what needs to be done to support it for my main
> projects - all Qt based. I have a number of compilers around - from VS6 to
> VS2010, and want to see if VS2012 is useful enough to add support for.
> 
> Any how...I have to keep support for targeting WinXP, and I typically do
> that through setting all the various variables (_WINNT, etc.) in a QMake
> PRI script only used in the Windows builds so everything is uniform. This
> works well for VS2008 and VS2010; however, they tried to drop WinXP/Win2k3
> from the support list with VS2012. A work-around is in place to use the
> multi-targetting support to utilize VS2010 from within VS2012 to build
> compatible binaries, but the project file has to be setup properly to do
> so. I typically rely on QMake to generate the project files and don't add
> them to source control - keeps it simple as only one project file is then
> maintained - the QMake one. They're suppose to release an update to VS2012
> later this year to re-add native support; but I was wondering if t
>  here was a way to get QMake to insert the proper text into the VS project
>  file [1] to enable the multi-targeting support automatically. If not,
>  okay I'll just wait.
> 
> TIA,
> 
> Ben
> 
> [1]
> [http://blogs.msdn.com/b/vcblog/archive/2009/12/08/c-native-multi-
targeting.aspx





More information about the cmake-developers mailing list