[Interest] qmake to cmake - error: redefinition of 'unit' const QQmlPrivate::CachedQmlUnit unit
nuno.santos at imaginando.pt
Thu Dec 15 13:45:01 CET 2022
I found the culprit. I was indeed doing a duplicated import of my qml.cmake file, which was adding each qml twice to the compilation.
Thanks for the heads up.
> On 15 Dec 2022, at 12:21, Ulf Hermann via Interest <interest at qt-project.org> wrote:
>> list(APPEND QML_FILES
> Are there more files called "Browser.qml" in the same module? That doesn't work. Your QML components need unique names.
> Or is there some qt_target_qml_sources() or similar, repeating the same QML files?
> In general, I think we need a bug report with a complete example.
> best regards,
> Interest mailing list
> Interest at qt-project.org
More information about the Interest