diff options
author | Li Xinwei <1326710505@qq.com> | 2021-05-21 20:50:22 +0800 |
---|---|---|
committer | Li Xinwei <1326710505@qq.com> | 2021-05-23 14:00:53 +0800 |
commit | 19bb9837a1103c16a7f59158d8a26c1dfe0f19fa (patch) | |
tree | 44eb1f229310f37278fb423b8205611e906c5c21 /src/tools | |
parent | 6fff7bb2692ecda1cff8624f5eccc0a2528fb693 (diff) |
Skip building debug bootstrap lib for CMake 3.20 and multi-config build
When building qtbase with CMake 3.20, only release tools will be built
by default in a multi-config build, so it is possible to skip building
debug bootstrap lib.
Task-number: QTBUG-88414
Change-Id: I266ac458ae3c89c593656e4ebdc788ae5797b788
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/bootstrap/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/bootstrap/CMakeLists.txt b/src/tools/bootstrap/CMakeLists.txt index 7d1a067126..31bbd7c2e1 100644 --- a/src/tools/bootstrap/CMakeLists.txt +++ b/src/tools/bootstrap/CMakeLists.txt @@ -289,4 +289,9 @@ qt_internal_extend_target(Bootstrap CONDITION MSVC DEFINES _CRT_SECURE_NO_WARNINGS ) + +if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.20.0" AND QT_FEATURE_debug_and_release) + set_property(TARGET Bootstrap + PROPERTY EXCLUDE_FROM_ALL "$<NOT:$<CONFIG:${QT_MULTI_CONFIG_FIRST_CONFIG}>>") +endif() # special case end |