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.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> (cherry picked from commit 273f1ffbf63ddc115e52b443fe20c2e88a6bcb8f)
This commit is contained in:
parent
3011891fb4
commit
9378db0f78
@ -1724,6 +1724,11 @@ function(__qt_propagate_generated_resource target resource_name generated_source
|
||||
|
||||
set(resource_target "${target}_resources_${resource_count}")
|
||||
add_library("${resource_target}" OBJECT "${generated_source_code}")
|
||||
set_target_properties(${resource_target} PROPERTIES
|
||||
AUTOMOC FALSE
|
||||
AUTOUIC FALSE
|
||||
AUTORCC FALSE
|
||||
)
|
||||
target_compile_definitions("${resource_target}" PRIVATE
|
||||
"$<TARGET_PROPERTY:${QT_CMAKE_EXPORT_NAMESPACE}::Core,INTERFACE_COMPILE_DEFINITIONS>"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user