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: Fixed
    • P2: Important
    • 2.5
    • 1.10.0, 1.11.0
    • None
    • host Linux, target Android
    • 6f56aa507 (master)

    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

          For Gerrit Dashboard: QBS-1254
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes