Qmake gives "Unknown test function: for"
-
I'm trying to use a for loop in my .pri file:
[code]
CONFIG += info
info {
for (thing,THINGS) {
# stuff
}
}
[/code]But when I attempt to build, I get the error:
Unknown test function: forMy google-fu has so far turned up several suggestions that I might be using the qmake from QT3 rather than QT4; however, I've checked one of the Makefiles produced before I added this line, and it says
[quote]
#############################################################################Makefile for building: UnitTests
Generated by qmake (2.01a) (Qt 4.8.5) on: Thu Dec 12 12:46:52 2013
Project: ../qmake/UnitTests.pro
Template: app
Command: /usr/local/Trolltech/Qt-4.8.5/bin/qmake -spec /usr/local/Trolltech/Qt-4.8.5/mkspecs/linux-g++ CONFIG+=debug CONFIG+=declarative_debug -o Makefile ../qmake/UnitTests.pro
#############################################################################
[/quote]
so it doesn't look like that's the problem in my case.Any help?