Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-14139

Description of qmake SUBDIRS variable not up to date

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.8.6, 5.2.0
    • 4.7.2
    • Documentation
    • None
    • 31e665c7cd9b2edb25fa695bed9c528c95ad0c64, Qt4.8: 0fc9791b4471f13eb5786689fd9b0ac134b69455

      The description of the SUBDIRS variable in the qmake Manual states the following:

      It is essential that the project file in each subdirectory has the same name as the subdirectory itself, so that qmake can find it. For example, if the subdirectory is called myapp then the project file in that directory should be called myapp.pro.

      http://doc.qt.nokia.com/4.7-snapshot/qmake-variable-reference.html#subdirs

      However, it seems to be possible to specify a relative path to a .pro file in any directory.

      For example, the following code specifies that plugin_coreplugin/plugin_coreplugin.pro and mylogin.pro belong to the project. For example,

      TEMPLATE = subdirs

      SUBDIRS = plugin_coreplugin \
      ../another/plugin/myplugin.pro

        For Gerrit Dashboard: QTBUG-14139
        # Subject Branch Project Status CR V

            leenam Leena Miettinen
            leenam Leena Miettinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes