PDA

View Full Version : QMAKESPEC in pro file



lni
11th May 2007, 20:17
Hi,

How can I add QMAKESPEC inside a pro file and tell qmake to use the spec to generate the Makefile?

Thanks

high_flyer
14th May 2007, 09:46
I never had to explicitly use that variable before, but I guess you use it just like any other var:
QMAKESPEC += <qmake.conf location>.
In the docs they say you should use the QMAKESPEC system enviornment variable instead (which makes sense)

Brandybuck
14th May 2007, 19:46
QMAKESPEC should be not be used inside of a .pro file. It just doesn't make any sense there. Instead, set it as an environment variable, or use the -spec option to qmake.