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

Qt Creator treats packagesExist incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 3.0.1
    • None
    • Fedora 20 x86_64

    Description

      Qt Creator mistakenly thinks that a packagesExist in a .pro file is true, when in fact it's not.

      For example, append the following to a .pro file:

      packagesExist(this_is_not_gonna_be_installed) {
          DEFINES += SHOULD_NOT_BE_DEFINED
          message("hello world")
          TARGET = aaa_bbb_ccc
      }
      

      In this case, if you #ifdef for SHOULD_NOT_BE_DEFINED you can see that it's not defined (correct) however Qt Creator will still try to launch the executable "aaa_bbb_ccc" and tell the following:

      Executable /home/Timur/Projects/misc/build-untitled1-Fedora_Qt5-Debug/aaa_bbb_ccc does not exist.

      Attachments

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

        Activity

          People

            dt Daniel Teske
            venemo Timur Kristóf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes