View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000852CMakepublic2004-05-17 16:172005-07-15 15:59
ReporterChris Scharver 
Assigned ToBill Hoffman 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000852: GLUT_INCLUDE_DIR incorrect for MacOS X
DescriptionFindGLUT.cmake's GLUT_INCLUDE_DIR is incorrect for MacOS X. The native GLUT library is built as a Cocoa framework. As such, searching for "GL/glut.h" is incorrect. The correct header is "GLUT/glut.h", but this isn't a path--it's a framework header. To keep variables present, I usually set include paths to locate the framework. In this case, I used:

FIND_PATH( GLUT_INCLUDE_DIR GLUT.framework
  ${OPENGL_INCLUDE_DIR}
  /System/Library
)

This value is still technically incorrect, but it doesn't generate an error as happens when CMake cannot find GL/glut.h. A technically correct approach would require supporting frameworks and using -F rather than -I when setting the path. Perhaps a future enhancement could check the target name for a path to see if it ends with ".framework?"
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0002682)
Bill Hoffman (manager)
2005-07-15 12:58

fixed in cvs.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team