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

Stuart Mentzer Stuart_Mentzer at objexx.com
Fri Jun 17 13:23:59 EDT 2016


On 6/17/2016 1:12 PM, Brad King wrote:
> On 06/17/2016 01:02 PM, Stuart Mentzer wrote:
>> Thanks but a line was lost in translation at the bottom:
>>
>> mark_as_advanced(
>>    *FREETYPE_LIBRARY*
>>    FREETYPE_INCLUDE_DIR_freetype2
>>    FREETYPE_INCLUDE_DIR_ft2build
>> )
>>
>> SLC handles mark_as_advanced for the _DEBUG and _RELEASE variables
>> but I assume we still need the base variable handled in FindFreetype.
> I dropped it intentionally.  We no longer add FREETYPE_LIBRARY to
> the cache, so we are not responsible for marking it as advanced.
> We only use the value if it was set by someone else.
>
> -Brad
Ah, OK. This doesn't match the usage in FindZlib that I was using as a guide:

mark_as_advanced(ZLIB_LIBRARY ZLIB_INCLUDE_DIR)

Stuart


More information about the cmake-developers mailing list