Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1254

Properties block affects property while it's condition is false

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 1.10.0, 1.11.0
    • None
    • host Linux, target Android

    Description

      I try to set module property under some condition using Properties block. When blocks condition is false this property changes its value and becomes undefined.

      Here is minimal example targeting Android:

       

      Project {
          CppApplication {
              Properties {
                  condition: false
                  cpp.syslibroot: "anything"//if i comment this line cpp.syslibroot has valid path
              }
          }
      }
      

      In this example cpp.syslibroot becomes undefined when i try to use it in Properties block (condition is always false).

      why property cpp.syslibroot is affected such way?

       

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              nsk Mikhail Fedotov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes