Fix macOS build for CMake < 3.18
We must explicitly set the GENERATED property on source files we
generate.
This amends commit f0a7d74e1d
.
Change-Id: Ifab405cd98deece49a1566ae04220e2b5d576429
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
392d9a5419
commit
a707ae094d
@ -567,6 +567,9 @@ function(qt_internal_add_darwin_permission_plugin permission)
|
||||
"
|
||||
CONDITION "${separate_request_genex}"
|
||||
)
|
||||
if(CMAKE_VERSION VERSION_LESS "3.18")
|
||||
set_property(SOURCE "${separate_request_source_file}" PROPERTY GENERATED TRUE)
|
||||
endif()
|
||||
target_sources(${plugin_target} PRIVATE
|
||||
"$<${separate_request_genex}:${separate_request_source_file}>"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user