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

Qt version check in *.pro file does not work correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 4.8.4
    • 4.8.3
    • Build tools: qmake
    • None
    • Windows XP 32-bit SP3 Qt 4.8.3 libraries compiled from source and using MinGW.

      When you put the following code in a *.pro file, Qmake will exit with an error:

      !contains(QT_MAJOR_VERSION, 4) {
      error("you are using an old version of Qt")
      }

      On Linux with Qt 4.8.3 libs compiled from source, it works fine.
      On windows with Qt 4.8.2 libs compiled form source (and the same MinGW compiler), it works fine.

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

            buddenha Oswald Buddenhagen
            trino trino
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes