diff options
author | Amir Masoud Abdol <amirmasoudabdol@icloud.com> | 2022-10-21 11:20:47 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-10-26 14:44:04 +0000 |
commit | 8aea53f159db276466becb612da94709b3691fad (patch) | |
tree | 2c117350949cc9c03c4c3a8134a7afe8abfc6a40 | |
parent | 10d0f365dae8bddda4b5cd3ad906adf69a011ea1 (diff) |
Make Sure that `qml_compile_hash_p.h` Isn't Missing
In the event of an unexpected build directory corruption, CMake
may fail to replace/install the `qml_compiler_hash_p.h` properly.
I have had similar errors with other files missing as well, so this
fix might be applicable to elsewhere as well.
Change-Id: Ife3e28a09296b5428d0f0248648caabda601c94d
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
(cherry picked from commit 64de90a97717ff04b8de7c069e8ce22f18e51641)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-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 fd718c2d62..a33a97b528 100644 --- a/cmake/QtDeclarativeSetup.cmake +++ b/cmake/QtDeclarativeSetup.cmake @@ -7,6 +7,8 @@ function(qt_declarative_write_tag_header target_name) set(out_file "${CMAKE_CURRENT_BINARY_DIR}/qml_compile_hash_p.h") if(FEATURE_developer_build AND EXISTS "${out_file}") + target_sources(${target_name} PRIVATE "${out_file}") + set_source_files_properties("${out_file}" PROPERTIES GENERATED TRUE) return() endif() |