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. Pick-to: 6.7 Change-Id: Idb896c1d9eda944a06d57b0491686cd78e010df0 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
337cadbcb7
commit
721cfbd194
@ -255,8 +255,8 @@ function(__qt_internal_walk_libs
|
||||
__qt_internal_promote_target_to_global(${lib_target_unaliased})
|
||||
endif()
|
||||
endif()
|
||||
elseif("${lib_target}" MATCHES "^Qt::(.*)")
|
||||
message(FATAL_ERROR "The ${CMAKE_MATCH_1} target is mentioned as a dependency for \
|
||||
elseif("${lib_target}" MATCHES "^(Qt|${QT_CMAKE_EXPORT_NAMESPACE})::(.*)")
|
||||
message(FATAL_ERROR "The ${CMAKE_MATCH_2} target is mentioned as a dependency for \
|
||||
${target}, but not declared.")
|
||||
else()
|
||||
if(NOT operation MATCHES "^(collect|direct)_targets$")
|
||||
|
Loading…
x
Reference in New Issue
Block a user