FindQt4.cmake in kdelibs differs from cmake version
Alexander Neundorf
neundorf at kde.org
Thu May 28 22:32:58 CEST 2009
On Monday 25 May 2009, Andreas Pakulat wrote:
> Hi,
>
> I just came across a not-so-nice difference between the FindQt4.cmake in
> kdelibs vs. the one in cmake 2.6.4. The kdelibs version doesn't set
> QT_VERSION_<MAJOR/MINOR/PATCH> while the cmake one does set them.
> Additionally the kdelibs-version version doesn't advertize the QTVERSION
> variable that it sets in its documentation, leaving the user without a clue
> how to find out the Qt version that has been found.
So we should sync this part.
I'd say the MAJOR/MINOR/PATCH should be added, and the QTVERSION should stay
undocumented.
> Does somebody know why kdelibs has its own FindQt4.cmake?
Yes.
In the beginning we needed it because we needed more features than the version
shipped with the cmake version we require had.
I'm still trying to sync both versions from time to time, but this is getting
harder.
We removed stuff from our version necessary for older Qt4 versions, in cmake
stuff was added which some trolls probably would not like, etc.
Alex
More information about the Kde-buildsystem
mailing list