MantisBT - CMake
View Issue Details
0016045CMakeCMakepublic2016-04-01 08:312016-06-10 14:31
ilovezfs 
Kitware Robot 
normalminoralways
closedmoved 
MacOSXOS X10.11
CMake 3.5.1 
 
0016045: OS X system GLUT should always be preferred to X11's
The Homebrew "bottle" build server happens to have X11 installed, but we'd prefer not to force an unnecessary X11 dependency on users. However, by default gl2ps will automatically link against X11's libglut.dylib if X11 happens to be installed. Therefore, I'm having to pass "-DGLUT_glut_LIBRARY=/System/Library/Frameworks/GLUT.framework" to cmake to avoid creating bottles that break on systems without X11. It would be nice if gl2ps used the system GLUT by default even if X11 happens to be installed without our having to manually intervene.

This is caused by cmake's find_package(GLUT) which prefers X11's GLUT to the system GLUT if X11 happens to be installed. Instead CMake should always using the system GLUT unless someone deliberately intervenes to choose X11's, regardless of whether X11 is installed or not installed.
Use find_package(GLUT) on a system that happens to have Xquartz (X11) installed.
https://github.com/Homebrew/homebrew/pull/50601/ [^]
http://www.geuz.org/pipermail/gl2ps/2016/000433.html [^]
No tags attached.
Issue History
2016-04-01 08:31ilovezfsNew Issue
2016-04-01 09:58Brad KingNote Added: 0040791
2016-06-10 14:29Kitware RobotNote Added: 0042974
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0040791)
Brad King   
2016-04-01 09:58   
The FindGLUT module currently lacks a maintainer:

 https://cmake.org/Wiki/CMake:Module_Maintainers [^]

If anyone wants to work on it please read that page and come to the developer mailing list.
(0042974)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.