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

qmake: Defining 2 conditions for the same instruction

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Incomplete
    • Affects Version/s: 5.3.0
    • Fix Version/s: None
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Environment:
      Linux

      Description

      If I add two nested conditions in myproject.pro like this:

      unix {
          contains(DEFINES, K_DEBUG) {
              SUBDIRS += debug
          }
      }
      


      The instruction is never executed even if the conditions are true. But if I remove the indentation blank spaces like this:

      unix {
      contains(DEFINES, K_DEBUG) {
               SUBDIRS += debug
      }
      }
      

      Then it works. I think the syntax analyzer of qmake should be more flexible.

      Thanks!

      PS: The text editor of the bug tracker doesn't allow me to show the problem in an accurate way, so please, visit this link: http://qt-project.org/forums/viewthread/51650

        Attachments

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

          Activity

            People

            Assignee:
            buddenha Oswald Buddenhagen
            Reporter:
            xtingray Gustav Gonzalez
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes