Qt Declarative (Quick 2)
Go to file
Joerg Bornemann 2d97f9bdf0 CMake: Fix qt6_generate_foreign_qml_types
We had the tst_qmlsplitlib test failing in in-source builds only,
because qt6_wrap_cpp is called on the generated sources and this sets
SKIP_AUTOMOC ON. Later in the build, the consumer of the
corresponding moc_XXX.cpp.json file errors out, because it cannot find
the file.

The test worked in out-of-source builds, because the paths of the
generated files were relative: add_custom_command generated the files in
the build dir. qt6_wrap_cpp got the relative paths and assumed them
relative to the source dir and did set SKIP_AUTOMOC on non-existent
source files. AUTOMOC took care of generating moc_XXX.cpp and
moc_XXX.cpp.json, and all was well.

Clearly, the consumer of the moc_XXX.cpp.json files expects them to be
generated by AUTOMOC.

Fix this by
- using absolute paths for the generated files to make sure
  target_sources gets the correct paths
- removing the qt6_wrap_cpp call

Pick-to: 6.5 6.4
Fixes: QTBUG-110117
Change-Id: I01bcd8e37f57cf30ea06a7dd1fd8844367b58a14
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-01-26 14:38:22 +01:00
LICENSES Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
cmake Make Sure that `qml_compile_hash_p.h` Isn't Missing 2022-10-26 14:02:58 +02:00
coin qmldom: use a released Qt 6.3 2022-10-06 11:41:18 +00:00
dist
examples Adjust the MultiEffect API 2023-01-26 12:42:33 +02:00
features
src CMake: Fix qt6_generate_foreign_qml_types 2023-01-26 14:38:22 +01:00
tests qmllint: Do not warn when accessing properties of global constructors 2023-01-26 11:42:34 +01:00
tools qmllint: Move qmlControlSanity loggers into a plugin 2023-01-23 10:45:30 +01:00
.cmake.conf Remove QT_USE_SYNCQT_CPP 2023-01-02 19:43:56 +01:00
.gitattributes qmlformat: improve testing of file based options 2021-11-04 13:35:48 +01:00
.gitignore Remove "2" from Qt Quick Controls directories 2022-12-01 10:26:20 +08:00
.gitmodules
.tag Use tree hash rather than commit hash in .tag file 2022-01-25 23:55:27 +01:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-09-07 17:01:30 +02:00
README.md
conanfile.py Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
configure.cmake Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-09-07 17:01:30 +02:00
dependencies.yaml Update dependencies on 'dev' in qt/qtdeclarative 2023-01-20 15:40:50 +00:00
qt_cmdline.cmake Remove "2" from Qt Quick Controls directories 2022-12-01 10:26:20 +08:00
qtdeclarative.doxy
sync.profile Remove "2" from Qt Quick Controls directories 2022-12-01 10:26:20 +08:00