CMAKE error when installing root

_ROOT Version: v6-28-00
Platform: MacOS
Compiler: Not Provided


I am trying to install root following instructions:

and when I try to build using the following commands:

cd ../root-build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/ROOT/root-install -DPYTHIA8_DIR=$PYTHIA8 -DPYTHIA8_INCLUDE_DIR=$PYTHIA8/include -DPYTHIA8_LIBRARY=$PYTHIA8/lib/libpythia8.so -DGSL_DIR=/usr/local -Dbuiltin_xrootd=ON -Droofit=ON -Dpythia8=ON ../root-sources

I get the following error:

CMake Error at cmake/modules/SearchInstalledSoftware.cmake:614 (message):
Please enable builtin Glew due bug in latest CMake (use cmake option
-Dbuiltin_glew=ON).
Call Stack (most recent call first):
CMakeLists.txt:254 (include)

Is there something I am not doing right?

May be @bellenot knows

I would say the solution is in the error message:

But where do I find this script? I could not find it anywhere

Which script? Just try:

cmake -DCMAKE_INSTALL_PREFIX=$HOME/ROOT/root-install -DPYTHIA8_DIR=$PYTHIA8 -DPYTHIA8_INCLUDE_DIR=$PYTHIA8/include -DPYTHIA8_LIBRARY=$PYTHIA8/lib/libpythia8.so -DGSL_DIR=/usr/local -Dbuiltin_xrootd=ON -Droofit=ON -Dpythia8=ON -Dbuiltin_glew=ON ../root-sources

I.e. add -Dbuiltin_glew=ON in the list of CMake options