0
votes

I want to reset LIBS variable of my project without touching pro file itself.

qmake fileName.pro LIBS=

this will not work, because "LIBS=" is performed before loading fileName.pro.

cat fileName.pro | grep -v "LIBS.*=" | qmake /dev/stdin 

will not work too, qmake seems to NOT be intended for PIPE-ing.

so is there some other option for editing/ignoring/reseting variable insade qmake command line, without changing pro file.

1

1 Answers

0
votes

it was the -after option that i was looking for:

qmake fileName.pro -after LIBS=

works well.