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? > > Or did you mean "do not _require_ pkg-config"? Because pkg-config is not available on all platforms, it is unwise to require it. > > Eike > -- -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
