I am having the following fatal error when building root 6.20.02:
[ 62%] Building CXX object graf3d/ftgl/CMakeFiles/FTGL.dir/src/FTBitmapGlyph.cxx.o
In file included from /Users/torres/soft/root/root-6.20.02/graf3d/ftgl/src/FTBitmapGlyph.cxx:3:
In file included from /Users/torres/soft/root/root-6.20.02/graf3d/ftgl/inc/FTBitmapGlyph.h:9:
In file included from /Users/torres/soft/root/root-6.20.02/graf3d/ftgl/inc/FTGL.h:21:
**/Users/torres/soft/root/root-6.20.02-build/include/TGLIncludes.h:21:10:** **fatal error:** **'GL/glew.h' file not found**
#include <GL/glew.h>
**^~~~~~~~~~~**
1 error generated.
make[2]: *** [graf3d/ftgl/CMakeFiles/FTGL.dir/src/FTBitmapGlyph.cxx.o] Error 1
make[1]: *** [graf3d/ftgl/CMakeFiles/FTGL.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 62%] Built target BaseTROOT
make: *** [all] Error 2
glew 2.1.0_1 is already installed in my machine and it is apparently linked. I am running in mac os Catalina 10.15.3.
At the end, sadly it appears to be a bug in CMake 3.15-3.17, and we disabled for Mac OS X an option with builtin_glew=OFF. Out of curiosity, we would like to ask you why you needed install glew from brew (it it a requirement of other application)?