View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007437CMakeModulespublic2008-08-01 09:452008-10-01 13:31
ReporterAndrew Hunter 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0007437: FindGLUT.cmake does not work on *nix systems
DescriptionCurrently FindGLUT.cmake does work on *nix systems.

The FINDPATH() function incorectly adds a GL/ prefix on glut.h which is not needed when /usr/include/GL is searched.

Also, FIND_LIBRARY() only searches /usr/openwin/lib which also breaks on *nix systems such as Ubuntu.

I will get a patch made to fix these issues posted soon.
TagsNo tags attached.
Attached Filespatch file icon FindGLUT-nix.patch [^] (1,133 bytes) 2008-08-01 10:14 [Show Content]

 Relationships

  Notes
(0012918)
Andrew Hunter (reporter)
2008-08-01 10:15

Attached patch which fixes issue. Tested on Ubuntu Intrepid Ibex.
(0013068)
Bill Hoffman (manager)
2008-08-19 14:16

This stuff should automatically be searched by cmake:

/usr/include
+ /usr/local/include /usr/lib
+ /usr/local/lib

I think the only change you need is:

- FIND_PATH( GLUT_INCLUDE_DIR GL/glut.h
+ FIND_PATH( GLUT_INCLUDE_DIR glut.h
+ PATH_SUFFIXES GL/

Can you verify that that works for you?

Thanks.

 Issue History
Date Modified Username Field Change
2008-08-01 09:45 Andrew Hunter New Issue
2008-08-01 10:14 Andrew Hunter File Added: FindGLUT-nix.patch
2008-08-01 10:15 Andrew Hunter Note Added: 0012918
2008-08-19 14:16 Bill Hoffman Note Added: 0013068
2008-08-19 14:16 Bill Hoffman Status new => assigned
2008-08-19 14:16 Bill Hoffman Assigned To => Bill Hoffman
2008-10-01 13:31 Bill Hoffman Status assigned => closed
2008-10-01 13:31 Bill Hoffman Resolution open => unable to reproduce


Copyright © 2000 - 2018 MantisBT Team