diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-08-08 15:40:31 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-08-09 14:20:08 +0200 |
commit | 0ce5c0a9969bc8c763ab50b6271e203c2bcb90de (patch) | |
tree | 6988a2a2876ec6606d646fefc2f12b56d189cd49 /tests/auto/cmake/test_add_resources_big_resources/intermediate_lib.h | |
parent | 09a8283fb6b831ed05f580313dd6857ee3a94e8d (diff) |
CMake: Bail when configuring multiple configurations and plain Ninja
Previously configuration would not error out if you configured Qt
with -DCMAKE_CONFIGURATION_TYPES=RelWithDebInfo;Debug -GNinja
instead you would get an error like
CMake Error at cmake/QtBaseConfigureTests.cmake:51 (message):
Failed to find compiled architecture detection executable at
qtbase/build/config.tests/arch/RelWithDebInfo/architecture_test.exe
Note that Qt code tries to find the arch test in a RelWithDebInfo
directory but due to using single-config Ninja,
CMAKE_CONFIGURATION_TYPES is ignored, and the executable is placed
in a non-config specific folder.
Error out early in such a case, and mention that for multi-config
builds, the Ninja Multi-Config generator should be used.
Pick-to: 6.4
Change-Id: I0192185123be563671cbe154f968a03b7458e327
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'tests/auto/cmake/test_add_resources_big_resources/intermediate_lib.h')
0 files changed, 0 insertions, 0 deletions