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

Benjamin Eikel cmake at eikel.org
Wed Sep 12 15:59:10 EDT 2012


Am Mittwoch, 12. September 2012 um 21:50:35 schrieb Alexander Neundorf:
> On Tuesday 11 September 2012, Benjamin Eikel wrote:
> > Am Dienstag, 11. September 2012 um 21:44:29 schrieb Alexander Neundorf:
> > > On Thursday 30 August 2012, Benjamin Eikel wrote:
> > > > Am Mittwoch, 29. August 2012 um 18:53:51 schrieb Brad King:
> > > > > On 08/29/2012 05:43 AM, Benjamin Eikel wrote:
> > > > > > 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.
> > > > > 
> > > > > Great, thanks for your work!
> > > > > 
> > > > > Please proceed through steps 5 and 6 here:
> > > > >  http://www.cmake.org/Wiki/CMake:Module_Maintainers#New_Maintainer
> > > > > 
> > > > > You're welcome to work on other modules (like SDL) as well, but
> > > > > please bring up changes for discussion on the list with the
> > > > > current maintainer of each.
> > > > > 
> > > > > > "glew.h" does not contain any version information.
> > > > > 
> > > > > It looks like there are version "macros" that evaluate to runtime
> > > > > tests.  How is one supposed to do any preprocessor conditionals
> > > > > based on the version when using GLEW?
> > > > 
> > > > I do not know of any preprocessor tests. There is a possiblity at
> > > > runtime to call "glewGetString(GLEW_VERSION)", but I think it would
> > > > be too resource intensive to compile and run an application in the
> > > > find module.
> > > 
> > > Any progress here ?
> > 
> > I did not plan to include a test that runs an application to determine
> > the version. Do you think that this should be done?
> 
> My personal opinion: a FindGLEW.cmake which does not test the version is
> better than no FindGLEW.cmake at all .

Yes, okay. But in your opinion, do you think version support is worth the test 
by running an application? I cannot estimate how large the running time of 
such a find module will increase (compiling and running an application). Is it 
common to use such a test in find modules? I believe that you have much more 
experience in using CMake and can give me a suggestion if it should be 
implemented.

> 
> Alex



More information about the cmake-developers mailing list