Consider versioned targets when checking the existens in __qt_internal_walk_libs
Since Qt targets now are linked as versioned targets by default, we should adjust the respective check in __qt_internal_walk_libs. Change-Id: Idb896c1d9eda944a06d57b0491686cd78e010df0 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 721cfbd1942f8148dd464c0542b0d4c1191b53f9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
062f701a11
commit
21b2ce455c
@ -255,8 +255,8 @@ function(__qt_internal_walk_libs
|
|||||||
__qt_internal_promote_target_to_global(${lib_target_unaliased})
|
__qt_internal_promote_target_to_global(${lib_target_unaliased})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
elseif("${lib_target}" MATCHES "^Qt::(.*)")
|
elseif("${lib_target}" MATCHES "^(Qt|${QT_CMAKE_EXPORT_NAMESPACE})::(.*)")
|
||||||
message(FATAL_ERROR "The ${CMAKE_MATCH_1} target is mentioned as a dependency for \
|
message(FATAL_ERROR "The ${CMAKE_MATCH_2} target is mentioned as a dependency for \
|
||||||
${target}, but not declared.")
|
${target}, but not declared.")
|
||||||
else()
|
else()
|
||||||
if(NOT operation MATCHES "^(collect|direct)_targets$")
|
if(NOT operation MATCHES "^(collect|direct)_targets$")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user