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

The build system does not work accept -DFEATURE_cxx20:BOOL=TRUE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.2.1, 6.3.0 Alpha
    • 6.3.0 Feature Freeze
    • Build System: CMake
    • None
    • 68ad67b6faf6922c66ddafee0dc055666a73cddd (qt/qtbase/dev) 3e98ad97b56b90047fa96da4ab6429fbb556ec5d (qt/qtbase/6.2)

    Description

      The build system does not accept -DFEATURE_cxx20:BOOL=TRUE, it insists on a string ON or OFF. This is inconsistent with -DFEATURE_developer_build build, for example (fixed in QTBUG-95732). It would be good if any CMake boolean values would be accepted.

      cmake] CMake Error at qtbase/cmake/QtFeature.cmake:545 (message):
      [cmake]   cxx20 has unexpected value "TRUE"! Valid values are ON, OFF and UNSET.
      [cmake] Call Stack (most recent call first):
      [cmake]   qtbase/cmake/QtFeature.cmake:553 (qt_internal_generate_feature_line)
      [cmake]   qtbase/cmake/QtFeature.cmake:653 (qt_internal_feature_write_file)
      [cmake]   qtbase/cmake/QtBaseGlobalTargets.cmake:103 (qt_feature_module_end)
      [cmake]   qtbase/CMakeLists.txt:107 (include)
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-96300
          # Subject Branch Project Status CR V

          Activity

            People

              semlanik Alexey Edelev
              ievgenii.meshcheriakov Ievgenii Meshcheriakov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes