[CMake] OPENGLConfig.cmake

Brad King brad.king at kitware.com
Tue May 24 13:42:36 EDT 2005


Ramesh Nair wrote:
> I downloaded CMake 2.0 patch 6 for x86 linux and tried running the
> pre-built ccmake for one of my projects.
> 
> It came up with this error:
> 
> CMake Error: OPENGL_DIR is not set.  It must be set to the directory
> containing OPENGLConfig.cmake in order to use OPENGL.
> 
> 
> My project uses OpenGL, which is probably why it says this.

Change

FIND_PACKAGE(OPENGL)

to

FIND_PACKAGE(OpenGL)

-Brad


More information about the CMake mailing list