diff options
author | Alexandru Croitor <[email protected]> | 2025-06-23 17:40:30 +0200 |
---|---|---|
committer | Alexandru Croitor <[email protected]> | 2025-06-24 15:29:50 +0200 |
commit | 5e405060431cae3cec450a4a73adcb650d3f86af (patch) | |
tree | a1ed573c0e309e7467ed6d0060545f7acac2209c /examples/network/README | |
parent | 36a375ff4c9c55112d2fec0f74f81f20b8ccaa9b (diff) |
A qt_find_package call first tries to find a Config package
with the CONFIG mode option, and if not found, falls back to an
arg-less mode which searches both Config and Find modules.
For some packages, we know we want to find the Find module because
there can't be a Config package, e.g our FindWrap modules or any of
the other Find modules we carry in our cmake directory.
So we should annotate these calls with MODULE.
Aside from slightly faster configuration, there is another reason to
do so.
Future versions of CMake will automatically log find_package
calls that have a state change (e.g. Not Found -> Found) into
CMakeConfigureLog.yaml.
Due to the Config-first logic in qt_find_package, we always unset the
Foo_DIR variable if the Config package is not found.
This means that there will be a constant build up of not-found
messages in the log.
Explicitly annotating the calls with MODULE will prevent this. Do
that.
This commit relands f1a59e974f013fcf8629d8cbacab58d895523100
This reverts commit 0ce82b78a35026cb56ff76d1c24b311008934a53.
Pick-to: 6.10
Change-Id: I5d37579d2f4957215ce1475b5c0ec8509d77c83d
Reviewed-by: Joerg Bornemann <[email protected]>
Diffstat (limited to 'examples/network/README')
0 files changed, 0 insertions, 0 deletions