From 38380de63c53b27dc85a1ba49e1ffade1c183fdd Mon Sep 17 00:00:00 2001 From: Axel Spoerl Date: Wed, 30 Aug 2023 10:02:29 +0200 Subject: [PATCH] tst_qstatictext: Fix CMake condition Private libraries were linked conditional to QT_FEATURE_private_tests in the CMake file. qstatictext_p.h was included conditional to developer build. A developer build fails, with test enabled and private tests disabled. => Change the CMake condition to QT_FEATURE_developer_build, to resolve mismatch between CMake and cpp file. Pick-to: 6.6 6.5 6.2 Change-Id: I79213e7d3c38851b8b80cb8ab248d7bff750c227 Reviewed-by: Alexey Edelev --- tests/auto/gui/text/qstatictext/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/gui/text/qstatictext/CMakeLists.txt b/tests/auto/gui/text/qstatictext/CMakeLists.txt index 560eab8db53..bdad2609fe3 100644 --- a/tests/auto/gui/text/qstatictext/CMakeLists.txt +++ b/tests/auto/gui/text/qstatictext/CMakeLists.txt @@ -21,7 +21,7 @@ qt_internal_add_test(tst_qstatictext ## Scopes: ##################################################################### -qt_internal_extend_target(tst_qstatictext CONDITION QT_FEATURE_private_tests +qt_internal_extend_target(tst_qstatictext CONDITION QT_FEATURE_developer_build LIBRARIES Qt::CorePrivate Qt::GuiPrivate