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

Rothganger, Fredrick frothga at sandia.gov
Mon Dec 7 14:50:06 EST 2009


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.

-- Fred

-------------- next part --------------
A non-text attachment was scrubbed...
Name: FindFreetype.diff
Type: application/octet-stream
Size: 876 bytes
Desc: FindFreetype.diff
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091207/96a4f6cc/attachment.obj>


More information about the CMake mailing list