Skip the work around of disregarded dependencies for interface libraries

Support the old CMake.

Amends 085ed83bb3ae4842b7dba8ff1fbd086477d461bf

Change-Id: Ibcc8f51d0381a4843adcaec9ce58d13a9e69ef8c
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexey Edelev 2025-02-24 10:03:55 +01:00 committed by Alexandru Croitor
parent edb9c90a97
commit 877ba467e1

View File

@ -226,6 +226,11 @@ function(qt_internal_work_around_autogen_discarded_dependencies target)
return()
endif()
get_target_property(type "${target}" TYPE)
if(type STREQUAL "INTERFACE_LIBRARY")
return()
endif()
set(libraries ${ARGN})
set(final_libraries "")