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

Properties block affects property while it's condition is false

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 1.10.0, 1.11.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      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

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            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