qxmpp-project / qxmpp

Cross-platform C++ XMPP client and server library
401 stars 197 forks source link

Add an ability to chose Qt major version from outside of the project #553

Closed TheBluestBird closed 1 year ago

TheBluestBird commented 1 year ago

PR check list:

This commit adds the ability to chose Qt Major Version from outside of the project.

The way it's written right now if a host have some Qt6 packages installed qxmpp automatically builds against Qt6 and there is no other way to affect it apart from patches (read the comments here)

The way I suggest it's going to change nothing by default but if someone is building qxmpp from other CMake project qxmpp is going to be build to the corresponding version of Qt of the parent project. This also is going to enable a way to quickly change Qt version with cmake build flags like -D QT_MAJOR_VERSION=5 or -D QT_MAJOR_VERSION=6