fix missdetection of GLUT

This commit is contained in:
Gael Guennebaud 2010-08-16 09:50:24 +02:00
parent aa2b46aa91
commit ba212aeaa9

View File

@ -94,9 +94,9 @@ endif()
find_package(OpenGL)
find_package(GLUT)
if(OPENGL_FOUND AND GLUT_FOUND)
if(OPENGL_FOUND AND GLUT_FOUND AND GLUT_LIBRARIES)
ei_add_property(EIGEN_TESTED_BACKENDS "opengl, ")
ei_add_test(openglsupport "" "${GLUT_LIBRARY}" )
ei_add_test(openglsupport "" "${GLUT_LIBRARIES}" )
else()
ei_add_property(EIGEN_MISSING_BACKENDS "opengl, ")
endif()