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

INCPATH is not correct when using "QMAKE_USE += gtk3" in a .pro file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.5.0 Beta1
    • 6.5
    • Build System: CMake
    • None
    • Linux/X11
    • fc3e0885a6 (qt/qtbase/dev)

      When using "QMAKE_USE += gtk3" in a .pro file, LIBS is fine, but not INCPATH, comparing with a 5.15 build.

      diff --git a/cmake/QtPriHelpers.cmake b/cmake/QtPriHelpers.cmake
      index 71164c6718..2fe73c80f2 100644
      --- a/cmake/QtPriHelpers.cmake
      +++ b/cmake/QtPriHelpers.cmake
      @@ -14,6 +14,7 @@ function(qt_generate_qmake_libraries_pri_content module_name output_root_dir out
               list(APPEND implicit_include_dirs_regex ${regex})
           endforeach()
           list(JOIN implicit_include_dirs_regex "|" implicit_include_dirs_regex)
      +    set(implicit_include_dirs_regex "")
       
           foreach(lib ${QT_QMAKE_LIBS_FOR_${module_name}})
               set(lib_targets ${QT_TARGETS_OF_QMAKE_LIB_${lib}})
      

      The above patch works fine for me. Perhaps it's related with https://codereview.qt-project.org/c/qt/qtbase/+/298053/9..10/cmake/QtBuild.cmake#556

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

            jbornema Joerg Bornemann
            liaqi Liang Qi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes