PDA

View Full Version : qmake processes my pro file several times



BigFastAndrey
28th June 2013, 09:50
I have a pro-file:

message("This message should be appeared only once!!!")
CONFIG += qt release
SOURCES += src/main.cpp

I call qmake:

set QMAKESPEC=win32-msvc2008
set QTDIR=c:\Qt\4.8.4_vs2008\

call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
call "%QTDIR%\bin\qmake.exe" -tp vc Server.pro

... and I got a very strange output:

Setting environment for using Microsoft Visual Studio 2008 x86 tools.
Project MESSAGE: This message should be appeared only once!!!
Project MESSAGE: This message should be appeared only once!!!
Project MESSAGE: This message should be appeared only once!!!

The question is: why did it process pro file THREE times instead of one?

wysota
28th June 2013, 12:12
That's how qmake works on Windows. No need to worry about it.