Details
Description
It seems when generating vcxproj with CONFIG += debug_and_release, the generated project will always have "GenerateDebugInformation" set to "false" even for the Debug configuration.
Steps to reproduce:
1. Create a .pro file with following content:
TARGET = test TEMPLATE = lib CONFIG += debug_and_release
2. Generate vcxproj using following command:
qmake.exe -tp vc test.pro -o test.vcxproj
Inspect the output test.vcxproj for <GenerateDebugInformation> xml tag value. It will be "false" for both Release and Debug Configuration.
In our case we were using the force_debug_info (CONFIG += debug_and_release force_debug_info) and expecting to have debug information generated in Release configuration as well. That didn't work either.
Attachments
For Gerrit Dashboard: QTBUG-110068 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
453443,10 | Set GenerateDebugInformation to true in vcproj if at least /DEBUG is set | dev | qt/qtbase | Status: MERGED | +2 | 0 |
453972,2 | Set GenerateDebugInformation to true in vcproj if at least /DEBUG is set | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
453973,2 | Set GenerateDebugInformation to true in vcproj if at least /DEBUG is set | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
454004,2 | Set GenerateDebugInformation to true in vcproj if at least /DEBUG is set | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
454005,2 | Set GenerateDebugInformation to true in vcproj if at least /DEBUG is set | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |