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

Setting FEATURE_<x> breaks its condition should actually print the CONDITION it breaks.

XMLWordPrintable

    • All
    • c140b26959038ada22452079ebc6e33195e9957d (qt/qtbase/dev) be01af7c343cdf7ea1bd6604bc3fa0a1f6ce6419 (qt/qtbase/6.0)

      Errors like: 

      CMake Error at cmake/QtFeature.cmake:214 (message):
       Feature "xcb": Forcing to "ON" breaks its condition.
      Call Stack (most recent call first):
       cmake/QtFeature.cmake:284 (qt_feature_set_value)
       cmake/QtFeature.cmake:155 (qt_evaluate_feature)
       cmake/QtFeature.cmake:258 (qt_evaluate_config_expression)
       cmake/QtFeature.cmake:470 (qt_evaluate_feature)
       cmake/QtFeature.cmake:450 (qt_feature_module_end)
       src/CMakeLists.txt:12 (qt_feature_evaluate_features)

      should actually print the condition it broke.
      It simply makes debugging what is missing much easier.

      (Yeah I know I could use --trace or --trace-expand but a) this requires rerunning configure and b) it requires actually finding the line where the condition was evaluated)

       

       

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

            semlanik Alexey Edelev
            neumann-a Alexander Neumann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes