[cmake-developers] [CMake 0013050]: FindOpenGL not working on Cygwin

Mantis Bug Tracker mantis at public.kitware.com
Sun Mar 18 04:41:28 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13050 
====================================================================== 
Reported By:                Davide Barbieri
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13050
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-03-18 04:41 EDT
Last Modified:              2012-03-18 04:41 EDT
====================================================================== 
Summary:                    FindOpenGL not working on Cygwin
Description: 
find_package(OpenGL) is not working on cygwin with cmake 2.8.7.

Probably, because in the newer versions of cmake you don't define
WIN32 no more.
But you still use it for FindOpenGL.cmake:

IF (WIN32)
  IF (CYGWIN)
    FIND_PATH(OPENGL_INCLUDE_DIR GL/gl.h )
    FIND_LIBRARY(OPENGL_gl_LIBRARY opengl32 )
    FIND_LIBRARY(OPENGL_glu_LIBRARY glu32 )
  ELSE (CYGWIN)
...

using directly the find_library macro, it works..

Steps to Reproduce: 
find_package(OpenGL)
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-03-18 04:41 Davide BarbieriNew Issue                                    
======================================================================




More information about the cmake-developers mailing list