[CMake] FindQt.cmake for Qt4

Filipe Sousa filipe at ipb.pt
Tue Jun 14 09:26:38 EDT 2005


On Tuesday 14 June 2005 14:18, Richard Wackerbarth wrote:
> On Jun 14, 2005, at 8:03 AM, Filipe Sousa wrote:
> > On Tuesday 14 June 2005 08:30, John Biddiscombe wrote:
> >>> How about keeping FindQt.cmake unchanged and adding the new one as
> >>> "FindQt4.cmake" ? IMHO this would be more obvious for the user
> >>> (developer).
> >>
> >> How about
> >> FindQt.....
> >> MESSAGE("Find Qt has been deprecated and you should use FindQt3 or
> >> FindQt4 depending upon your needs")
> >> INCLUDE(FindQt3)
> >>
> >> and rename the old findqt to findqt3 and the new one findQt4
> >
> > It's better keep the current FindQt with the same name, otherwise
> > the users
> > have to change their projects to use FindQt3 instead of FindQt.
>
> I disagree. The point of John's suggestion is that "FindQt" should
> generally apply to the most recent
> version available. If the users really want to stay with QT3, then
> they should change their CMake files accordingly.

Are you saying that users should change FIND_PACKAGE(FindQt) to 
FIND_PACKAGE(FindQt3) to use Qt 3? But this breaks the compatibility with old 
versions of CMake that doesn't have FindQt3.cmake

> John's proposal does not "break" the existing installations. It just
> issues a warning and otherwise continues with the old behavior.

-- 
Filipe Sousa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20050614/351b3daa/attachment.pgp


More information about the CMake mailing list