CMake: Fix Core -> Core dependency in static build
Fix the overly strict regex in qt_internal_create_module_depends_file to
allow for - and _ in module names.
We had the above mentioned dependency cycle, because the module name
Core_qobject was translated to just Core, creating a Core -> Core
dependency.
Amends da7609e7d0
.
Fixes: QTBUG-88437
Change-Id: I866f7ce31e9a1b92fe4c0a6450295c2f3c761558
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
d312580a05
commit
2d07ef0b56
@ -129,7 +129,7 @@ function(qt_internal_create_module_depends_file target)
|
||||
set(all_depends ${depends} ${public_depends})
|
||||
foreach (dep ${all_depends})
|
||||
# Normalize module by stripping leading "Qt::" and trailing "Private"
|
||||
if (dep MATCHES "(Qt|${QT_CMAKE_EXPORT_NAMESPACE})::([A-Za-z0-9]+)")
|
||||
if (dep MATCHES "(Qt|${QT_CMAKE_EXPORT_NAMESPACE})::([-_A-Za-z0-9]+)")
|
||||
set(dep "${CMAKE_MATCH_2}")
|
||||
if (TARGET Qt::${dep})
|
||||
get_target_property(dep_type Qt::${dep} TYPE)
|
||||
|
Loading…
Reference in New Issue
Block a user