diff options
| author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-05-13 18:31:26 +0200 |
|---|---|---|
| committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-05-19 10:16:01 +0200 |
| commit | 06b148074a591c333623e387bac8451b3e334af6 (patch) | |
| tree | 785af9f3de77fabd5c18e72e9dacb89d59a95748 /util/cmake/configurejson2cmake.py | |
| parent | 2259a433ca341129253ceb69bbe9eefc546282a3 (diff) | |
CMake: Allow using single config generators after building with NMC
Where NMC is the CMake Ninja Multi-Config generator.
The first use case is to allow building standalone tests with one
configuration even if Qt was build with multiple configurations.
Another use case is for regular Qt consumers that might use the
generated qt-cmake shell script which does not have the generator
specified (as opposed to qt-cmake-private).
Another detail is to use the first configuration from the initial
Qt configurations list (CMAKE_CONFIGURATION_TYPES) when building
standalone tests with a single config generator, so that it doesn't
default to Debug, but rather to the provided first configuration.
This matches qmake behavior, where on Windows with a
debug_and_release configuration, tests are still built against
release.
Task-number: QTBUG-80900
Change-Id: I0da91c1f91095332cfe9e38d17f440aad6a09d15
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'util/cmake/configurejson2cmake.py')
0 files changed, 0 insertions, 0 deletions
