diff options
author | Kai Koehne <kai.koehne@qt.io> | 2020-05-06 15:09:37 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2020-05-07 08:37:00 +0200 |
commit | 56c203fc09e6e7aeb6ce474e30fe4a93c8d412b4 (patch) | |
tree | 42f4880ac73a8eb99e5a8995dc1e25943a73d988 /src/testlib/doc/snippets | |
parent | 5bfbae7d20a44a6a55e03eaef19127720c7fcf18 (diff) |
Snippets: Fix dependency issues
The widget snippet was sometimes ignored, because the printsupport
dependency was not explicit in the top-level src.pro file. This lead
to a situation that, if printsupport by chance was already built,
it was tested, otherwise silently ignored.
This shows that having requires(qtHaveModule()) inside src/ is actually
harmful, and they are therefore removed from snippets.pro. Also, the
dependencies for the snippets projects are now moved to a central place
so that the correctness is easier to check.
Pick-to: 5.15
Change-Id: Ice051fa04848040e206c78361fbbcf680383c6b2
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/testlib/doc/snippets')
-rw-r--r-- | src/testlib/doc/snippets/snippets.pro | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/testlib/doc/snippets/snippets.pro b/src/testlib/doc/snippets/snippets.pro index d1ca7ca3ec..28b6682b72 100644 --- a/src/testlib/doc/snippets/snippets.pro +++ b/src/testlib/doc/snippets/snippets.pro @@ -1,6 +1,3 @@ -requires(qtHaveModule(sql)) -requires(qtHaveModule(widgets)) - TEMPLATE = app TARGET = testlib_cppsnippet QT = core testlib sql widgets |