Skip to content

FindGLUT: Provide legacy GLUT_INCLUDE_DIR result in pkg-config code path

Brad King requested to merge brad.king/cmake:FindGLUT-include-dirs into master

Since !6251 (merged) we return early if pkg-config provides the information. During review of that commit, code to populate the legacy GLUT_INCLUDE_DIR result variable was removed from that code path. Add code to provide it.

Also fix the test case to use GLUT_INCLUDE_DIR, the result variable documented officially by the module.

Fixes: #23018 (closed)
Backport: release

Merge request reports