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

REG: Error from qmake on previously working .pro file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.12.5
    • Build tools: qmake
    • None
    • Windows 10

    Description

      The following .pro file sets a variable to the contents of an environment variable and checks its contents, which is a pretty common pattern in my projects to enable overriding paths etc. with environment variables.

      TESTVAR = $$(NON_EXISTENT_ENVVAR)
      isEmpty($$TESTVAR): message("Environment variable missing")
      

      In Qt 5.9 (for instance, I only tested 5.9 and 5.12), this prints out "Environment variable missing" as supposed to, but in Qt 5.12 qmake will exit with an error saying isEmpty(var) requires one argument.

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes