[PATCH for 4.0] make FindFreetype.cmake compatible with FindFreetype from cmake

Alexander Neundorf neundorf at kde.org
Fri Jan 4 10:13:11 GMT 2008


Hi,

the attached patch makes the "interface" of FindFreetype.cmake compatible with 
the interface of FindFreetype.cmake in cmake cvs (commit to cmake cvs will 
follow) by adding the variable FREETYPE_INCLUDE_DIRS, which is set equal to 
FREETYPE_INCLUDE_DIR.

I'd like to have that in 4.0 because this way KDE 4.0.x developers can use 
the "API" of FindFreetype.cmake as it will be in cmake's version.

Having different interfaces to the same cmake module sucks, because it means 
that 
* once we require CMake 2.6 (maybe KDE 4.2) the FindFreetype module will only 
provide FREETYPE_INCLUDE_DIRS, not FREETYPE_INCLUDE_DIR, so at this point in 
time it would be a source incompatible change. Having _DIRS now in svn means 
everybody should use the _DIRS variable already in KDE 4.0 and later on it 
will just work.
* developers have to use them differently whether they are working in KDE or 
outside KDE

Ok to commit ?

Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FindFreetype.cmake.patch
Type: text/x-diff
Size: 768 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080104/51e52d0d/attachment.patch>
-------------- next part --------------
_______________________________________________
Kde-buildsystem mailing list
Kde-buildsystem at kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


More information about the kde-core-devel mailing list