diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-11-01 10:41:11 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2021-11-02 11:51:26 +0100 |
commit | f04dbdfc97f88260f312da325efd60170450671a (patch) | |
tree | ccbd6b3287e2ec7346509f03e3f3a1921d17d832 /src | |
parent | 25781a1396a9bebf8125e1989232d4d08d7c5160 (diff) |
CMake: Don't create targets if dependencies are not found
If one of the dependencies in QtFooModuleDependencies.cmake is not
found, QtFoo_FOUND will be set to False by find_dependency.
In that case, we should not create imported targets that belong to
that package.
It would be misleading for projects that do target existence checks
instead of package_FOUND checks as well as generally being
incorrect. The created imported targets might be referencing other
targets that would not exist.
Pick-to: 6.2
Fixes: QTBUG-97896
Change-Id: I09198aa3f19be047b27c29329b6e62c30fa09dc0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Craig Scott <craig.scott@qt.io>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions