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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 6.5
    • Fix Version/s: 6.5.0 Beta1
    • Component/s: Build System: CMake
    • Labels:
      None
    • Platform/s:
      Linux/X11
    • Commits:
      fc3e0885a6 (qt/qtbase/dev)

      Description

      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

        Attachments

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes