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

Nikos Chantziaras realnc at arcor.de
Sun Mar 21 12:10:54 CET 2010


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
   }



More information about the Qt-interest-old mailing list