The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=16045 
====================================================================== 
Reported By:                ilovezfs
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   16045
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-04-01 08:31 EDT
Last Modified:              2016-04-01 08:31 EDT
====================================================================== 
Summary:                    OS X system GLUT should always be preferred to X11's
Description: 
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.

Steps to Reproduce: 
Use find_package(GLUT) on a system that happens to have Xquartz (X11) installed.

Additional Information: 
https://github.com/Homebrew/homebrew/pull/50601/
http://www.geuz.org/pipermail/gl2ps/2016/000433.html
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-04-01 08:31 ilovezfs       New Issue                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to