Re: [Qt-creator] CONFIG variables not as expected

2019-12-31 Thread Bob Babcock
=?UTF-8?Q?Andr=c3=a9_Hartmann?=  wrote in news:709647cd-
724b-693d-893a-7bed3bb43...@gmx.de:

>> but detecting the compiler version is more awkward.
> Why?

I can do
   win32-msvc2015 { Do stuff... }
but not
   win32-msvc2017 { Do stuff... }

The only way I see to tell that it's 2017 is to check if it isn't any other 
MS compiler that I use.  Perhaps it's silly, but I try to maintain 
compatibility with 2013, 2015 and 2017 and Qt back to 5.9x.

I use some 3rd party libraries that are built separately and it seems 
safest to use libraries built with a matching compiler.  Less important, I 
include compiler version in my About screen and use DEFINES to get that 
info into the code.

___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] CONFIG variables not as expected

2019-12-31 Thread André Hartmann

Hi Bob,


I'm using Qt 5.14.0 and the bundled Creator 4.11.0 under Windows 7.
In a new or previously existing project using qmake, I display the contents
of CONFIG by message($$CONFIG) in the .pro file.

For a msvc3015 project, I see win32-msvc2015 in the list values.

For a msvc2017 project, I do not see win32-msvc2017 or anything similar.

For a gcc project, I do not see debug_and_release like I do with msvc
projects.


That's probably the outcome from QTBUG-78445, which resulted in QTBUG-80792

There is work ongoing to *allow* separate Qt debug builds again, but the
official release will (most likely) only contain release DLLs with
separate debug information.

> I can add CONFIG *= debug_and_release so I get debug and release build
> subdirectories

I'm actually doing the other way round, as I'm always shadow-building,
so the additional only complicate things.

> but detecting the compiler version is more awkward.

Why?

Best regards,
André

https://bugreports.qt.io/browse/QTBUG-78445
https://bugreports.qt.io/browse/QTBUG-80792




___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator



___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator