[CMake] FindQt.cmake for Qt4

Richard Wackerbarth rkw at dataplex.net
Tue Jun 14 09:18:33 EDT 2005


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.

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


More information about the CMake mailing list