[Qt-interest] Testing in the project file whether GCC is used as compiler
Thiago Macieira
thiago at kde.org
Sun Mar 21 12:16:11 CET 2010
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
}
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100321/4da11366/attachment.bin
More information about the Qt-interest-old
mailing list