Proposed changes to FindQt4.cmake

Bill Hoffman bill.hoffman at kitware.com
Tue Mar 6 19:16:51 CET 2007


Caleb Tennis wrote:
>> FIND_LIBRARY should work with frameworks just fine.   The FindQt4.cmake
>> in CMake does not have as much special framework stuff as the one in
>> KDE.  But FIND_LIBRARY() does find frameworks on the mac.   However,
>> when FindQt4.cmake was written, it did not.
>>     
>
> I read that on the online Documentation.html for cmake and tried it out yesterday to
> see if that was the case.  It did find the frameworks, but it found them as
> "/Library/Frameworks/QtXXX.framework/QtXXX" and didn't have the "-framework" part at
> the beginning of the string like the FindQt4.cmake in KDE's cvs did, so I went this
> route.
>
> I'll play with it some more and see if I can make it work, though.
>   
If you give cmake a ..../foo.framework as a link library, cmake will 
convert it to the -framework for you when it creates the link line.

-Bill



More information about the Kde-buildsystem mailing list