[cmake-developers] New find module: FindGLEW.cmake

Rolf Eike Beer eike at sf-mail.de
Thu Aug 30 08:08:04 EDT 2012


Benjamin Eikel wrote:
> Am Donnerstag, 30. August 2012 um 13:00:48 schrieb Rolf Eike Beer:
> > Alexander Neundorf wrote:
> > > On Wednesday 29 August 2012, Benjamin Eikel wrote:
> > > > Dear CMake developers,
> > > > 
> > > > I have written a find module for the OpenGL Extension Wrangler (GLEW)
> > > > [1] library (see attachment). I tried to follow all the instructions
> > > > that I have found. I am willing to maintain that module.
> > > > Unfortunately, the header file "glew.h" does not contain any version
> > > > information. I could
> > > 
> > > Cool :-)
> > > From looking a bit around on the web, it seems other alternative names
> > > for the glew library are "glew" and "glew32s"
> > > Maybe you can add those two names to the find_library() call ?
> > > 
> > > > extract version information using PkgConfig, but I have in mind that
> > > > using PkgConfig is discouraged. I am looking forward to your feedback.
> > > 
> > > If possible, it'd be nice to do that without pkg-config, that's right.
> > > glew.h on my system contains several version-related macros, isn't any
> > > of
> > > these usable ?
> > 
> > Why? My guess would be to check whatever works, i.e. test pkg-config first
> > and if that doesn't give anything suitable then do the normal scanning.
> 
> Cheking pkg-config first is possible. But that would mean that the result of
> the find module depends on the availability of pkg-config (a version is
> reported if and only if pkg-config is available). Is that desirable?

The other possibility would be that the version is never available, which I 
think is worse.

> > Or did you mean "do not _require_ pkg-config"?
> 
> Because pkg-config is not available on all platforms, it is unwise to
> require it.

No question.

Eike
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20120830/22ef7ab4/attachment.sig>


More information about the cmake-developers mailing list