diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2022-09-23 12:20:27 +0200 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2022-09-27 02:42:57 +0200 |
commit | db98e5c309c54df9b2cf5d6a2057cd0cb0a49a75 (patch) | |
tree | ff06e1d0ae81e4ff9d23367c2d82ff083e0e7635 /cmake | |
parent | a66f6a9a9f7b95cdb80ff109340475aff2e682eb (diff) |
Mark files generated by add_custom_command with the GENERATED property
Old CMake versions don't set the GENERATED property to TRUE
automatically for files that are generated by add_custom_command calls.
Add the flag explicitly for guarantee the correct work of functions
that may use it.
Task-number: QTBUG-87480
Change-Id: Id3e924a9ae12f6a67f5280b8f369f0da84ac2bbf
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtDeclarativeSetup.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/QtDeclarativeSetup.cmake b/cmake/QtDeclarativeSetup.cmake index d3561f48ff..6559b7b4c8 100644 --- a/cmake/QtDeclarativeSetup.cmake +++ b/cmake/QtDeclarativeSetup.cmake @@ -49,6 +49,7 @@ function(qt_declarative_write_tag_header target_name) "You need either a valid git repository or a non-empty .tag file.") endif() target_sources(${target_name} PRIVATE "${out_file}") + set_source_files_properties("${out_file}" PROPERTIES GENERATED TRUE) endfunction() # Generate a header file containing a regular expression jit table. @@ -71,4 +72,5 @@ function(qt_declarative_generate_reg_exp_jit_tables consuming_target) ) target_sources(${consuming_target} PRIVATE ${output_file}) target_include_directories(${consuming_target} PRIVATE $<BUILD_INTERFACE:${generate_dir}>) + set_source_files_properties(${output_file} PROPERTIES GENERATED TRUE) endfunction() |