We shouldn't try to promote tool targets if they were not created when Qt6FooTools_FOUND is FALSE due to missing dependencies and Qt6FooToolsTargets.cmake is not included. Add a check for Qt6FooTools_FOUND to prevent errors like: CMake Error at lib/cmake/Qt6/QtPublicTargetHelpers.cmake:257 (get_property): get_property could not find TARGET Qt6::qtprotobufgen. Perhaps it has not yet been created. Change-Id: Ie26db637d4d8ef682a0ada5ea36ef0e8ceced008 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 3f6041a24fe9b663e6a00481a30e84b2cd15763c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%