[Qt-interest] qmake: select variables depending in compiler
Matthias Pospiech
matthias.pospiech at gmx.de
Wed Nov 11 10:55:31 CET 2009
Christian Döring schrieb:
> Hello,
> You can use QMAKE_CC or QMAKE_CXX in your .pro-File to determnine the
> compiler.
>
What values can 'QMAKE_CXX ' have? The documentation gives no
information about that.
> If you additionally want to distinguish between different versions of
> visual studio you can use $$find(QMAKE_COMPILER_DEFINES, "_MSC_VER")
> which should give you something like win32-msvc2008 or win32-msvc2005
>
How can I test for these variables? I could not find an if statement in
the qmake docs.
Or should I use 'contains(variablename, value)' ?
Matthias
More information about the Qt-interest-old
mailing list