[Qt-interest] qmake "-=" operator on the command line
Bo Thorsen
bo at fioniasoftware.dk
Sun May 29 18:32:37 CEST 2011
Den 29-05-2011 18:08, Thiago Macieira skrev:
> On Sunday, 29 de May de 2011 17:28:26 Nikos Chantziaras wrote:
>> Is the following supposed to work?
>>
>> qmake CONFIG-=warn_off myproject.pro
>>
>> Because it doesn't. "+=" works fine, it's only "-=" that doesn't.
>
> You have to be more precise. When you say "it doesn't work", we don't know
> exactly what you meant.
>
> In this case, I'm going to guess that you wanted to enable warnings (by
> removing the disable-warnings option). And warnings were still not enabled.
>
> However, the command you ran probably works just fine. It's your expectation of
> what it does that is incorrect. I'm sure qmake removed any "warn_off"
> configuration that was active. The questions you have to ask are:
>
> 1) at what point is any "warn_off" introduced, relative to the processing of
> the command-line? before, after or never?
This reminds me that when doing stuff like this, you should always do
qmake -after ...
to make sure your arguments are not overwritten.
You could try something like this (untested):
qmake -after "CONFIG-=warn_off" "CONFIG+=warn_on" myproject.pro
Bo Thorsen,
Fionia Software.
--
Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk
More information about the Qt-interest-old
mailing list