summaryrefslogtreecommitdiffstats
path: root/cmake/QtPluginConfig.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/QtPluginConfig.cmake.in')
-rw-r--r--cmake/QtPluginConfig.cmake.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/QtPluginConfig.cmake.in b/cmake/QtPluginConfig.cmake.in
index 25ad75ce71..1dc30b0338 100644
--- a/cmake/QtPluginConfig.cmake.in
+++ b/cmake/QtPluginConfig.cmake.in
@@ -1,5 +1,17 @@
+# Copyright (C) 2024 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
include_guard(DIRECTORY)
+if(DEFINED QT_REPO_DEPENDENCIES AND NOT QT_INTERNAL_BUILD_STANDALONE_PARTS)
+ # We're building a Qt repository.
+ # Skip this plugin if it has not been provided by one of this repo's dependencies.
+ string(TOLOWER "@PROJECT_NAME@" lower_case_project_name)
+ if(NOT lower_case_project_name IN_LIST QT_REPO_DEPENDENCIES)
+ return()
+ endif()
+endif()
+
@PACKAGE_INIT@
cmake_minimum_required(VERSION @min_new_policy_version@...@max_new_policy_version@)