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

Handle configure custom include, define, link, framework flags

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 6.0
    • Build System: CMake

    Description

      configure allows specifying custom include flags to be used when building Qt with -I, custom defines with -D, custom link flags with -L, custom framework flags with -F.

      These are currently used in the qmake Qt builds in the CI to specify OpenSSL include paths and libs. For CMake builds we handle that manually, by giving an OpenSSL_ROOT dir.

      We should be able to handle those flags in CMake as well though (in cmake/QtProcessConfigureArgs.cmake)

      This means introducing some CMake variables to contain those flags, writing those values either to QtBuildInternalsExtra.cmake (assuming they are only used for internal Qt builds, but I think that's not the case), or to Qt6Config.cmake / Platform target to make the public.

      They also need to be written to the appropriate .pri / .prl files for qmake consumers.

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes