Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1380

Files with the same name from different folders are produced in one moc file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 1.12.0
    • Fix Version/s: None
    • Component/s: Configuration Probes
    • Labels:
      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            vitech Viktor Kireev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes