The CMake version of FindGLUT doesn't automatically find GLUT, and it seems to do a very bad job of trying to find it. In order to try to fix this I set GLUT_INCLUDE_DIRS and GLUT_LIBRARIES explicitly, but then the code in config/FindGLUT.cmake is not able to do set(GLUT_FOUND 1) since it's inside the if-statement if((NOT GLUT_INCLUDE_DIRS) OR (NOT GLUT_LIBRARIES)).
The CMake version of FindGLUT doesn't automatically find GLUT, and it seems to do a very bad job of trying to find it. In order to try to fix this I set
GLUT_INCLUDE_DIRS
andGLUT_LIBRARIES
explicitly, but then the code inconfig/FindGLUT.cmake
is not able to doset(GLUT_FOUND 1)
since it's inside the if-statementif((NOT GLUT_INCLUDE_DIRS) OR (NOT GLUT_LIBRARIES))
.What do you think?