[CMake] FIND_PACKAGE, version check
Alexander Neundorf
a.neundorf-work at gmx.net
Tue Jan 9 10:20:47 EST 2007
-------- Original-Nachricht --------
Datum: Tue, 9 Jan 2007 15:49:03 +0100
Von: Pierre <pierre.php at gmail.com>
An: cmake at cmake.org
Betreff: [CMake] FIND_PACKAGE, version check
> Hello,
>
> Being new to this list and cmake, I first like to thank you for cmake,
> it is a pleasure to work with it.
>
> In an attempt to use CMake in libgd (http://libgd.org), I was looking
> for a way to use the versions argument in find_package. For example, I
> have to do something like:
>
> FIND_PACKAGE(Freetype 2.2) or FIND_PACKAGE(Freetype 2.2.1)
I'm afraid support for the version parameter of find_package() is currently not implemented.
> I checked the various Find* function in cmake (2.4.3) or the various
> other projects like KDE but they don't seem to check the version
> informations in the cmake Find* macros. My idea was to provide
> FOO_VERSION(_(MAJOR|MINOR|PATH), is it the way to go?
Sounds good.
> On the same topic, is there a need to improve a bit the existing
> macros to use pkg-config as fallback? For example, ubuntu does not
> install pngconfig or freetype-config but use pkg-config data only.
If you have ideas how to improve them, of course the cmake devs would be happy I think.
Bye
Alex
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
More information about the CMake
mailing list