diff options
author | Kevin Funk <kevin.funk@kdab.com> | 2021-08-13 16:31:28 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-10-11 17:30:59 +0000 |
commit | 56ee36ef1507752f8250039d98439e1ec5ac8fa3 (patch) | |
tree | a2d68c85a038c66ce2009bbe74ed6bad783b63f4 /src | |
parent | daefd5fdff053471cf5be5fa6a15f9ddfc5e3d65 (diff) |
cmake: Ask CMake AUTOMOC to skip generated files
SKIP_AUTOUIC needs to be set as well to hide CMake warnings such as:
```
Policy CMP0071 is not set: Let AUTOMOC and AUTOUIC process GENERATED files.
Run "cmake --help-policy CMP0071" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
For compatibility, CMake is excluding the GENERATED source file(s):
".../examples/qscxmldebugger/statemachine.cpp"
```
Change-Id: I6219f34467dbeda70dc6e371a6333339ea53e661
Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 6464114cb9edfcf905d4333fa6a19e4b84de2024)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/scxml/Qt6ScxmlMacros.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/scxml/Qt6ScxmlMacros.cmake b/src/scxml/Qt6ScxmlMacros.cmake index f78155c..0bb42f9 100644 --- a/src/scxml/Qt6ScxmlMacros.cmake +++ b/src/scxml/Qt6ScxmlMacros.cmake @@ -87,7 +87,10 @@ function(qt6_add_statecharts target_or_outfiles) VERBATIM) list(APPEND outfiles ${outfile_cpp}) endforeach() - set_source_files_properties(${outfiles} PROPERTIES SKIP_AUTOMOC TRUE) + set_source_files_properties(${outfiles} PROPERTIES + SKIP_AUTOMOC TRUE + SKIP_AUTOUIC TRUE + ) if (TARGET ${target_or_outfiles}) target_include_directories(${target_or_outfiles} PRIVATE ${qscxmlcOutputDir}) target_sources(${target_or_outfiles} PRIVATE ${outfiles}) |