[cmake-developers] FindFreetype patch for Windows debug lib naming

Rolf Eike Beer eike at sf-mail.de
Thu Jun 9 09:33:29 EDT 2016


Am 2016-06-09 15:00, schrieb Brad King:
> On 06/08/2016 12:33 AM, Stuart Mentzer wrote:
>> Here is a little patch that lets FindFreetype find the debug
>> library on Windows, where it is named with a d suffix.
> 
> Thanks.  I split the patch into two and applied:
> 
>  FindFreetype: Factor out common find command arguments
>  https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=746a4245
> 
>  FindFreetype: Search for a separate debug library
>  https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6085b855

This will probably not work: SLC will look for FREETYPE_LIBRARY_RELEASE, 
which is never set. So you will have to

set(FREETYPE_LIBRARY_RELEASE ${FREETYPE_LIBRARY})
SLC()
unset(FREETYPE_LIBRARY_RELEASE)

or something like that.

Greetings,

Eike


More information about the cmake-developers mailing list