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

qttools: CMake failure if litehtml is found on the system

    XMLWordPrintable

Details

    • efa979b053 (qt/qttools/dev) e9457483fe (qt/qttools/6.4) e9457483fe (qt/tqtc-qttools/6.4) efa979b053 (qt/tqtc-qttools/dev) 014e6d8a99 (qt/tqtc-qttools/6.2) c8a1aef992 (qt/qttools/6.3) c8a1aef992 (qt/tqtc-qttools/6.3) c8a1aef992 (qt/qttools/6.3.2)

    Description

      There are these 3 lines in qttools/src/assistant/CMakeLists.txt:

       
      qt_internal_set_exceptions_flags(litehtml OFF)
      qt_disable_warnings(litehtml)
      qt_disable_warnings(gumbo)
       
      When litehtml is found on the system, CMake refuses to set target properties on such targets:

       
      [cmake] CMake Error at qtbase/cmake/QtFlagHandlingHelpers.cmake:189 (target_compile_definitions):
      [cmake] Cannot specify compile definitions for target "litehtml" which is not built
      [cmake] by this project.
      [cmake] Call Stack (most recent call first):
      [cmake] qttools/src/assistant/CMakeLists.txt:35 (qt_internal_set_exceptions_flags)
      [cmake]
      [cmake]
      [cmake] CMake Error at qtbase/cmake/QtFlagHandlingHelpers.cmake:208 (get_target_property):
      [cmake] get_target_property() called with non-existent target "litehtml".
      [cmake] Call Stack (most recent call first):
      [cmake] qttools/src/assistant/CMakeLists.txt:36 (qt_disable_warnings)
      [cmake]
      [cmake]
      [cmake] CMake Error at qtbase/cmake/QtFlagHandlingHelpers.cmake:208 (get_target_property):
      [cmake] get_target_property() called with non-existent target "gumbo".
      [cmake] Call Stack (most recent call first):
      [cmake] qttools/src/assistant/CMakeLists.txt:37 (qt_disable_warnings)
      [cmake]
      [cmake]
       
      uninstalling litehtml from system resolves the error.

      Attachments

        Issue Links

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

          Activity

            People

              alexandru.croitor Alexandru Croitor
              leroy Haoyu Liu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes