The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13746 
====================================================================== 
Reported By:                hades
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13746
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-11-27 06:32 EST
Last Modified:              2012-11-27 06:32 EST
====================================================================== 
Summary:                    FindOpenGL module reports OpenGL_FOUND even when no
OPENGL_INCLUDE_DIR is set
Description: 
When cmake can find a libGL.so, but no gl.h, it still sets OPENGL_FOUND to TRUE,
despite that OPENGL_INCLUDE_DIR is set to NOTFOUND and therefore completely
unusable.

I believe line 153 should be changed from:

FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenGL DEFAULT_MSG OPENGL_gl_LIBRARY)

to:

FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenGL DEFAULT_MSG OPENGL_gl_LIBRARY
OPENGL_INCLUDE_DIR)
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-11-27 06:32 hades          New Issue                                    
======================================================================

--

Powered by www.kitware.com

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

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

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

Reply via email to