Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-3791

Qt Creator doesn't parse DEFINES in custom configuration when using qmake -config

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • Qt Creator 2.1.0-rc1
    • C/C++/Obj-C++ Support
    • None

    Description

      I have a project that has multiple configurations. e.g.

      SOURCES = a.cpp b.cpp
      conf1 {
      DEFINES += ABC
      }
      conf2 {
      DEFINES += DEF
      }

      If I add CONFIG += conf1 inside the pro file, or even as an argument to qmake in the Project section of Qt Creator, the defines are parsed correctly. However, if I use -config conf1 in qmake arguments, they're not. On the contrary, if I add SOURCES += c.cpp to conf1, Qt Creator DOES add c.cpp to the sources tree view (when specified using -config argument)

      Attachments

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

        Activity

          People

            erikv Erik Verbruggen
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes