Assume that the Qt Plugin package is FOUND by default

Set the <package>_FOUND variable to TRUE by default, so the follow
logic that need to change the flag only need to take care about
setting it to FALSE if something exceptional occurred.

Amends 8d0283ad2cae3d8fbd4b1b7ee5c6454f7fcc079c

Pick-to: 6.5 6.8 6.9
Change-Id: Idd4407ea77e81703b5fa8cc5efa8c52b53d401ae
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexey Edelev 2024-12-27 11:13:45 +01:00
parent 10a3859809
commit 1360824179

View File

@ -1,7 +1,7 @@
# Copyright (C) 2024 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
set(@target@_FOUND FALSE)
set(@target@_FOUND TRUE)
# note: _third_party_deps example: "ICU\\;FALSE\\;1.0\\;i18n uc data;ZLIB\\;FALSE\\;\\;"
set(__qt_@target@_third_party_deps "@third_party_deps@")
@ -20,6 +20,4 @@ _qt_internal_find_qt_dependencies("@target@" __qt_@target@_target_deps
if(__qt_${target}_missing_deps)
set(@target@_FOUND FALSE)
else()
set(@target@_FOUND TRUE)
endif()