Skip to content

Commit

Permalink
Configure: Do not automatically enable compilation of examples for tests
Browse files Browse the repository at this point in the history
If user's specified to build without examples we shouldn't silently
overwrite this. This might mean that some tests will fail to run then,
though.

Fixes: QTBUG-84087
Pick-to: 5.15
Change-Id: I53748fc03354ffdf015f85c93efc6e86c446adb8
Reviewed-by: Edward Welbourne <[email protected]>
  • Loading branch information
kkoehne committed May 19, 2020
1 parent b2c991b commit 9981744
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions mkspecs/features/qt_parts.prf
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,7 @@ exists($$_PRO_FILE_PWD_/tests/tests.pro) {
contains(SUBDIRS, sub_src): sub_tests.depends = sub_src # The tests may have a run-time only dependency on other parts
contains(SUBDIRS, sub_tools): sub_tests.depends += sub_tools
sub_tests.CONFIG = no_default_install
!contains(QT_BUILD_PARTS, tests) {
sub_tests.CONFIG += no_default_target
} else: !uikit {
# Make sure these are there in case we need them
sub_tools.CONFIG -= no_default_target
sub_examples.CONFIG -= no_default_target
sub_demos.CONFIG -= no_default_target
}
!contains(QT_BUILD_PARTS, tests): sub_tests.CONFIG += no_default_target
SUBDIRS += sub_tests
}

Expand Down

0 comments on commit 9981744

Please sign in to comment.