cmake: skip precompiled headers for generated resources
resource compilation is typically not bound by parsing headers, so they don't benefit much from using precompiled headers. otoh, if we don't use precompiled headers for them, we may have better turnaround times, as these sources can be compiled in parallel with the pch compilation and they don't have to be rebuilt when a pch changes Change-Id: Ib4560ff31196e729f8efbcfb83cacfad127d90cd Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
301f0a6fb0
commit
3eca801f9d
@ -380,6 +380,7 @@ function(qt6_add_resources outfiles )
|
||||
set_source_files_properties(${outfile} PROPERTIES SKIP_AUTOMOC ON
|
||||
SKIP_AUTOUIC ON
|
||||
SKIP_UNITY_BUILD_INCLUSION ON
|
||||
SKIP_PRECOMPILE_HEADERS ON
|
||||
)
|
||||
list(APPEND ${outfiles} ${outfile})
|
||||
endforeach()
|
||||
@ -2020,6 +2021,7 @@ function(_qt_internal_process_resource target resourceName)
|
||||
SKIP_AUTOGEN TRUE
|
||||
GENERATED TRUE
|
||||
SKIP_UNITY_BUILD_INCLUSION TRUE
|
||||
SKIP_PRECOMPILE_HEADERS TRUE
|
||||
)
|
||||
get_target_property(target_source_dir ${target} SOURCE_DIR)
|
||||
if(NOT target_source_dir STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
|
Loading…
Reference in New Issue
Block a user