Disable AUTOGEN for resource object targets

It looks like resource object targets don't need AUTOMOC as well
as other AUTOGEN tools. The only source file skips autogen explicitly,
but AUTOMOC requirement is added to the resource object targets anyway.

This disables all AUTOGEN related properties explicitly for all
resource object targets.

The problem occurs when building top-level Qt with the static library
that uses resources in tree.

Pick-to: 6.2 6.5 6.6 6.7
Change-Id: I5c968a3e34c881e7fbc5589626ab02b3b1e53968
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexey Edelev 2024-01-08 14:09:16 +01:00
parent 63a00ef2c0
commit dd4c14104c

View File

@ -1869,6 +1869,11 @@ function(__qt_propagate_generated_resource target resource_name generated_source
set(resource_target "${target}_resources_${resource_count}")
add_library("${resource_target}" OBJECT "${resource_init_file}")
set_target_properties(${resource_target} PROPERTIES
AUTOMOC FALSE
AUTOUIC FALSE
AUTORCC FALSE
)
# Needed so that qtsymbolmacros.h and its dependent headers are already created / syncqt'ed.
if(TARGET Core_sync_headers)
set(headers_available_target "Core_sync_headers")