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.6 6.5 6.2 Change-Id: I5c968a3e34c881e7fbc5589626ab02b3b1e53968 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit dd4c14104cfab6330b31937acf2b2f120ef940a0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
4bc230ad05
commit
273f1ffbf6
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user