The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13306 
====================================================================== 
Reported By:                Jona
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13306
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-06-14 16:45 EDT
Last Modified:              2012-06-14 16:45 EDT
====================================================================== 
Summary:                    findglut bug
Description: 
I have installed freeglut on my system, but FindGlut.cmake is unable to find it.
I have an enviroment variable called GLUT_ROOT_PATH but it is not used by the
skript.

I rewrote the script and now it works for me:

IF (WIN32)
  FIND_PATH( GLUT_INCLUDE_DIR NAMES GL/glut.h 
        PATHS  ENV GLUT_ROOT_PATH
        PATH_SUFFIXES include
        )
  FIND_LIBRARY( GLUT_glut_LIBRARY NAMES glut glut32 freeglut
        PATHS ENV OPENGL_LIBRARY_DIR GLUT_ROOT_PATH
        PATH_SUFFIXES Release lib
    )
ELSE (WIN32)

The old version was:
IF (WIN32)
  FIND_PATH( GLUT_INCLUDE_DIR NAMES GL/glut.h 
    PATHS  ${GLUT_ROOT_PATH}/include )
  FIND_LIBRARY( GLUT_glut_LIBRARY NAMES glut glut32 freeglut
    PATHS
    ${OPENGL_LIBRARY_DIR}
    ${GLUT_ROOT_PATH}/Release
    )
ELSE (WIN32)

(as I can see, it uses the cmake variable GLUT_ROOT_PATH instead of the
enviromentvariable and doenst look inside /lib for the library.


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-06-14 16:45 Jona           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