FindGLUT: undocumented GLUT_LIBRARY and GLUT_INCLUDE_PATH not set if pkg-config is used
Similar to #23018 (closed)
FindGLUT.cmake now first tries to use pkg-config to find GLUT. If this is successful, it immediately returns and does not set the deprecated GLUT_LIBRARY
and GLUT_INCLUDE_PATH
variables. I ran into this with mapviz. Obviously, this can easily be fixed downstream by avoiding the deprecated variables, and I'm going to submit such a fix to mapviz.
On the other hand, it seems like this was an unintentional change, and the deprecated variables should either continue to be set even if pkg-config is used, or be removed altogether to avoid confusing differences in behavior depending on whether pkg-config is available.
Edited by Brad King