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

[Reg 5.15 -> 6] CMake: Can't skip PrintSupport.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 6.1.0
    • Build System: CMake
    • None
    • Windows 10, MSVC 2019
    • Windows
    • 9d84bafebabb48b83edd6392027238d7a4dd3581 (qt/qtbase/dev)

    Description

      With old QMake build you could skip PrintSupport by -no-feature-printer.

      Old "qtbase\src\src.pro":

      qtConfig(gui) {
          ...
          qtConfig(widgets) {
              ...
              qtConfig(printer) {
                  SUBDIRS += src_printsupport

      Please review the following patch:

      diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
      index bf71322b44..71c07359ee 100644
      --- a/src/CMakeLists.txt
      +++ b/src/CMakeLists.txt
      @@ -67,7 +67,7 @@ endif()
       if (QT_FEATURE_testlib)
           add_subdirectory(testlib)
       endif()
      -if(QT_FEATURE_gui AND QT_FEATURE_widgets)
      +if(QT_FEATURE_gui AND QT_FEATURE_widgets AND QT_FEATURE_printer)
          add_subdirectory(printsupport)
       endif()
       add_subdirectory(plugins)
      

      Note: "printer" is a public feature per "src\printsupport\configure.json".

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            nodir.temir Nodir Temirkhodjaev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes