summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2024-04-05 11:01:24 +0200
committerAlexey Edelev <alexey.edelev@qt.io>2024-05-07 12:13:33 +0200
commit337cadbcb7900d78505b25e66555b853d2c2c707 (patch)
tree4f8a3b343bb112d3a3070e9f2ad117db87c55a0e
parente820ff83012b5fe3057f5c6dba1e2163d39e7161 (diff)
Consider '^Qt6' deps when generating pkg-config files
Dependencies that alredy start with QT_CMAKE_EXPORT_NAMESPACE shouldn't be skipped but collected as is when generating pkg-config files. Pick-to: 6.5 6.6 6.7 Fixes: QTBUG-124135 Change-Id: I6875337c2e1d98f657e52a5fc2c37eebccf08b98 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
-rw-r--r--cmake/QtPkgConfigHelpers.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtPkgConfigHelpers.cmake b/cmake/QtPkgConfigHelpers.cmake
index dbe736c438..ea28516941 100644
--- a/cmake/QtPkgConfigHelpers.cmake
+++ b/cmake/QtPkgConfigHelpers.cmake
@@ -74,7 +74,7 @@ function(qt_internal_generate_pkg_config_file module)
foreach(dep IN LISTS loose_target_requires)
if(dep MATCHES "^Qt::")
string(REGEX REPLACE "Qt" "${QT_CMAKE_EXPORT_NAMESPACE}" dep ${dep})
- else()
+ elseif(NOT dep MATCHES "^${QT_CMAKE_EXPORT_NAMESPACE}::")
# TODO: Figure out a way to get non-Qt requirements PkgConfig files.
continue()
endif()