[Qt-interest] Testing in the project file whether GCC is used as compiler

Nikos Chantziaras realnc at arcor.de
Sun Mar 21 12:33:46 CET 2010


On 03/21/2010 01:16 PM, Thiago Macieira wrote:
> Em Domingo 21. Março 2010, às 12.10.54, Nikos Chantziaras escreveu:
>> I need to append a GCC option in QMAKE_CXXFLAGS, or else the application
>> won't run correctly.  That option is only recognized by GCC though, so
>> if compiling with another compiler, the build may fail.  Is there a way
>> to test this?  Something like:
>>
>>     gcc {
>>       QMAKE_CXXFLAGS += -some_gcc_option
>>     }
>
> *-g++* {
>      QMAKE_CXXFLAGS += -some_gcc_option
> }

Thanks.



More information about the Qt-interest-old mailing list