From 19bb9837a1103c16a7f59158d8a26c1dfe0f19fa Mon Sep 17 00:00:00 2001 From: Li Xinwei <1326710505@qq.com> Date: Fri, 21 May 2021 20:50:22 +0800 Subject: 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 Reviewed-by: Joerg Bornemann --- src/tools/bootstrap/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tools') 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 "$>") +endif() # special case end -- cgit v1.2.3