summaryrefslogtreecommitdiffstats
path: root/cmake/QtModuleToolsVersionlessTargets.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/QtModuleToolsVersionlessTargets.cmake.in')
-rw-r--r--cmake/QtModuleToolsVersionlessTargets.cmake.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/QtModuleToolsVersionlessTargets.cmake.in b/cmake/QtModuleToolsVersionlessTargets.cmake.in
index 6d0f57e039..bc861a77b6 100644
--- a/cmake/QtModuleToolsVersionlessTargets.cmake.in
+++ b/cmake/QtModuleToolsVersionlessTargets.cmake.in
@@ -1,6 +1,9 @@
+# Copyright (C) 2024 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
foreach(__qt_tool @tool_targets_non_prefixed@)
if(NOT TARGET Qt::${__qt_tool} AND TARGET Qt6::${__qt_tool})
- add_executable(Qt::${__qt_tool} IMPORTED)
+ add_executable(Qt::${__qt_tool} IMPORTED GLOBAL)
# Check all the usual imported location properties to find one that contains a path.
foreach(__qt_imported_location_config