Fix for ROOT-6417 (Segmentation violation on fresh compiled ROOT with CMake)