Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
1.12.0
-
None
Description
A/Base.h
#pragma once #include <QObject> namespace A { class Base : public QObject { Q_OBJECT public: Base(QObject* parent = nullptr) : QObject{parent} {} }; } // namespace A
B/Base.h
#pragma once #include <QObject> namespace B { class Base : public QObject { Q_OBJECT public: Base(QObject* parent = nullptr) : QObject{parent} {} }; } // namespace B
Error:
Conflicting instances of rule '[cpp,hpp,moc_cpp,unmocable][cpp,hpp,objcpp]': Output artifact '/home/xxx/Build/QbsSameMoc/GCC-Debug/qtc_GCC_Debug/QbsSameMoc.55438583/qt.headers/moc_Base.cpp' is to be produced from input artifacts '/home/xxx/Develop/QbsSameMoc/B/Base.h' and '/home/xxx/Develop/QbsSameMoc/A/Base.h', but the rule is not a multiplex rule.
Attachments
Issue Links
- is duplicated by
-
QBS-1796 Qt's MOC fails if there are 2+ files with the same name
- Open