cmake: Don't add module header for interface libs without headers

Change-Id: Ifba869586a65f28d5ff47bb2c01ce638110f493f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Tor Arne Vestbø 2020-10-27 13:12:43 +01:00
parent 4b899a29fa
commit 598e873c84

View File

@ -138,6 +138,11 @@ function(qt_internal_create_module_depends_file target)
if (skip_module_depends_include)
continue()
endif()
else()
get_target_property(module_has_headers Qt::${dep} INTERFACE_MODULE_HAS_HEADERS)
if (NOT module_has_headers)
continue()
endif()
endif()
endif()
endif()