diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2023-06-01 13:36:17 +0200 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2023-06-01 19:30:41 +0200 |
commit | 418901bc5606153a6bd9eb0174a287c73d55b1da (patch) | |
tree | d4c8d85ba0a1ac23dd763c0aff02ddd729bf211f | |
parent | eb68a18f9771ee913201fd9d4f09a50195436e2d (diff) |
Add the missing dependency on Scxml_sync_headers target
The qscxmlc tool uses source files from Scxml module. These source
files use module include style that requires header files be in "sync".
Add the explicit dependency on Scxml_sync_headers target to the
qscxmlc tool.
Change-Id: I561ee0e90f9483bbbaf50a140b50d5a2be068078
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r-- | tools/qscxmlc/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/qscxmlc/CMakeLists.txt b/tools/qscxmlc/CMakeLists.txt index 7e20fc2..006b2fd 100644 --- a/tools/qscxmlc/CMakeLists.txt +++ b/tools/qscxmlc/CMakeLists.txt @@ -36,6 +36,11 @@ qt_internal_add_tool(${target_name} ) qt_internal_return_unless_building_tools() +# qscxmlc uses header and source files from Scxml library instead of linking it. These sources use +# includes from the module(using the module include style) so need to sync the module header +# files first to avoid compiler errors. +add_dependencies(${target_name} Scxml_sync_headers) + set_property(SOURCE ../../src/scxml/qscxmlerror.h PROPERTY SKIP_AUTOMOC ON) set_property(SOURCE ../../src/scxml/qscxmlcompiler.cpp PROPERTY SKIP_AUTOMOC ON) |