Why is qmake ignoring the -spec flag?

Viewed 1268

I've got many different VS instances on a build machine, so I'm using the -spec flag to tell qmake to generate the right kind of project. Unfortunately, Qt seems to be ignoring it and continues to use the wrong compiler:

[01:51:01][Step 1/2] Starting: C:\Qt\Qt5.1.1\5.1.1\msvc2012_64_opengl\bin\qmake.exe -spec win32-msvc2013 -tp vc Fixer.pro
[01:51:01][Step 1/2] in directory: C:\TeamCity\buildAgent4\work\d1b6b25e39f4d573\src\Fixer
[01:51:02][Step 1/2] WARNING: Generator: MSVC.NET: Found more than one version of Visual Studio, but none in your path! Fallback to lowest version (MSVC.NET 2013 (12.0), MSVC.NET 2012 (11.0), MSVC.NET 2010 (10.0))
[01:51:02][Step 1/2] Process exited with code 0

Why is this happening? Any way to coerce it to use the VS version I want?

Note: I don't actually have VS2010 installed. I have uninstalled it, yet qmake still seems to be able to find it.

1 Answers
Related