cmake cannot find libGL.so after installing NVidia driver
The link in /usr/lib64/libGL.so was not updated to the NVidia version. Just remove the broken link and
ln -s /usr/lib64/libGL.so.VER.VER /usr/lib64/libGL.so, where VER.VER is the NVidia driver version.
For other missing libs that targeting a broken link, same strategy can be applied.