Fix FindFreeGLUT

This commit is contained in:
Epicalert 2021-07-19 20:32:32 +08:00
parent b6b027fbb3
commit 2cd872cae2
No known key found for this signature in database
GPG key ID: CAA46F858D0979BD

View file

@ -1,6 +1,6 @@
find_path( GLUT_INCLUDE_DIR NAMES glut.h freeglut.h PATHS /usr/include/GL ) find_path( GLUT_INCLUDE_DIR NAMES GL/freeglut.h )
find_library( GLUT_LIBRARY NAMES glut PATHS /usr/lib /usr/lib64 /lib /lib64 /usr/local/lib ) find_library( GLUT_LIBRARY NAMES glut freeglut PATHS /usr/lib /usr/lib64 /lib /lib64 /usr/local/lib )
if (GLUT_INCLUDE_DIR AND GLUT_LIBRARY) if (GLUT_INCLUDE_DIR AND GLUT_LIBRARY)
set( GLUT_FOUND "TRUE" ) set( GLUT_FOUND "TRUE" )