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

The 'help' example should only build if 'Qt::Help' is built

    XMLWordPrintable

Details

    • Linux/X11
    • ea1d75d4da (qt/qttools/dev) b335a2e44b (qt/qttools/6.3) ffc5058d50 (qt/qttools/6.2) ffc5058d50 (qt/tqtc-qttools/6.2) b335a2e44b (qt/tqtc-qttools/6.3) ea1d75d4da (qt/tqtc-qttools/dev) b335a2e44b (qt/qttools/6.3.0) b335a2e44b (qt/tqtc-qttools/6.3.0)

    Description

      It seems my default cmake build disables 'Qt::Help'. That is fine for me, but it breaks the examples. The following change seems to resolve the problem (tested on Qt 6.2.3):

      diff --git a/qttools/examples/CMakeLists.txt b/qttools/examples/CMakeLists.txt
      index 8a360b99e70..1db20ffabaf 100644
      --- a/qttools/examples/CMakeLists.txt
      +++ b/qttools/examples/CMakeLists.txt
      @@ -8,7 +8,9 @@ qt_exclude_tool_directories_from_default_target(
       )
       
       if(TARGET Qt::Widgets)
      -    add_subdirectory(help)
      +    if(TARGET Qt::Help)
      +        add_subdirectory(help)
      +    endif()
           add_subdirectory(linguist)
           add_subdirectory(uitools)
       endif()
      

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            emmenlau Mario Emmenlauer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes