Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
6.0
-
d6e41abd62f03761388664574c538a8c7de9b50d (qt/qtbase/dev)
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
- is required for
-
QTBUG-85373 "configure -cmake" does not map all arguments to CMake
- Closed
- relates to
-
QTBUG-85240 Building examples with qmake / cmake using Qt 6.0.0 snapshot fails
- Closed
For Gerrit Dashboard: QTBUG-85878 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
310216,5 | CMake: Handle -D, -I, -F and -L configure arguments | dev | qt/qtbase | Status: MERGED | +2 | 0 |