While for libpng, libzlib, and libtiff CMake will give short readable error messages about not finding them, if GLUT isn't found(I didn't have the lib or the headers installed), it outputs this: ... CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: GLUT_INCLUDE_DIR (ADVANCED) used as include directory in directory /.../piglit/tests/util used as include directory in directory /.../piglit/tests/bugs ... linked by target "mesautil" in directory /.../piglit/tests/mesa/util linked by target "texline" in directory /.../piglit/tests/mesa/tests -- Configuring incomplete, errors occurred! The ',,,' is it spamming the terminal with a list of pretty much every single test directory. Unless scrollback in the terminal is infinite and you can scroll all the way back to read through the whole CMake log, you'll probably only see a thousand lines of spam that don't say what the actual errors were.
Seems to be a CMake bug; added a workaround in commit a4d8676d39eaa6c8d972498741944121babcb846.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.