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

Brad King brad.king at kitware.com
Fri Jun 10 09:03:13 EDT 2016


On 06/10/2016 03:19 AM, Stuart Mentzer wrote:
> On 6/10/2016 2:45 AM, Rolf Eike Beer wrote:
>> I'm sure I also wrote "you probably need to set/unset
>> FREETYPE_LIBRARY_RELEASE around SLC so it still works",
>> The point here is that you can't change the variable name
>> that is used in find_library() as it would break compatibility.
> 
> Is there someone who can just do what is needed and let us be done with this?

Eike, IIRC what we've done for other modules is change the cache
entries to use ${pkg}_LIBRARY_{RELEASE,DEBUG} and then provided
compatibility with scripts that explicitly set ${pkg}_LIBRARY
by using the value if set and skipping the search.  See FindZLIB
for an example of this.

-Brad



More information about the cmake-developers mailing list