diff options
| author | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-07-08 09:59:05 +0200 |
|---|---|---|
| committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-07-08 16:40:35 +0200 |
| commit | 7540b4bd5634c9104a99f9b219531b1e3dd7942d (patch) | |
| tree | 9252b0e0733c9d71f58ccf364b6b1de6082aed0d /src/corelib/debug_script.py | |
| parent | 1a57a4974be9dbdeedef6f5c6eb4332eecf6f0c9 (diff) | |
Fix build of Debug projects against debug-and-release non-prefix Qt
Building a CMake project with CMAKE_BUILD_CONFIG=Debug was broken for
non-prefix debug-and-release builds of Qt.
In debug-and-release builds we set EXCLUDE_FROM_ALL on tools in the
Debug configuration. In non-prefix builds we export(EXPORT) targets, and
that also contains the non-existent Debug variants of the tools. In
prefix builds, we install(EXPORT) instead, which only exports what is
built and installed.
Consequently, we now remove the DEBUG-related import information if the
debug variant if the target binary does not exist.
Pick-to: 6.2
Fixes: QTBUG-95027
Change-Id: I37766d5ab1e2795bcb91a348e7e72150e8a00f82
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/debug_script.py')
0 files changed, 0 insertions, 0 deletions
