[CMake] Patch to FindFreetype.cmake to avoid NOTFOUND in FREETYPE_LIBRARIES

Alexander Neundorf a.neundorf-work at gmx.net
Tue Dec 8 13:41:47 EST 2009


On Monday 07 December 2009, Rothganger, Fredrick wrote:
> Greetings,
>
> Not sure how to address the following to the maintainer of FindFreetype, so
> sending it to this list...
>
> FindFreetype unconditionally sets FREETYPE_LIBRARIES to whatever
> FREETYPE_LIBRARY is, even when it is not found.  Many other FindXXX modules
> wrap the creation of their XXX_LIBRARIES variable in an IF(XXX_FOUND)
> block.  This reduces the complexity of specifying which libraries to link a
> target against when that list contains optional libraries.  Attached is a
> patch that modifies FindFreetype to follow this convention as well.  Please
> consider making this change.

If it hasn't been applied yet (didn't check), please put it in the bugtracker 
at http://public.kitware.com/Bug/, so it doesn't get lost.

Alex


More information about the CMake mailing list