Dealias the target implicitly in _qt_internal_add_transitive_property

Ensure the target is not an ALIAS target when adding the
transitive properties.

Pick-to: 6.8 6.9
Change-Id: Ic9cb4f1a6e110596e430176cfa9b7f742d2c3446
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Alexey Edelev 2025-04-04 14:48:28 +02:00
parent be93c06758
commit d9ce5184c2

View File

@ -735,6 +735,7 @@ function(_qt_internal_add_transitive_property target type property)
message(FATAL_ERROR "Attempt to assign unknown TRANSITIVE_${type}_PROPERTIES property")
endif()
_qt_internal_dealias_target(target)
get_target_property(transitive_properties ${target}
TRANSITIVE_${type}_PROPERTIES)
if(NOT "${property}" IN_LIST transitive_properties)