[cmake-developers] [CMake 0013746]: FindOpenGL module reports OpenGL_FOUND even when no OPENGL_INCLUDE_DIR is set

Mantis Bug Tracker mantis at public.kitware.com
Tue Nov 27 06:32:38 EST 2012


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                                    
======================================================================




More information about the cmake-developers mailing list