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

NOT ( x AND y ) feature condition incorrectly evaluated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.7.0 FF
    • 6.6
    • Build System: CMake
    • None
    • All
    • 36e043dde (dev), 814de4c2c (dev)

      See QTBUG-117052 for a real-world occurrence of the issue.

      How to reproduce: place the following feature definition in qtbase/configure.cmake

      qt_feature("foo"
          CONDITION NOT ( OFF AND OFF )
      )
      

      Then run

      ~/dev/qt/dev/qtbase/configure -no-gui -- --trace-expand --trace-redirect=cmake.trace && rg FEATURE_foo < CMakeCache.txt
      

      and observe that the feature is OFF.

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

            jbornema Joerg Bornemann
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes