X11:X11 target not found when uprgrading from vtk 8 to 9 on Rocky9 linux

VTK should be adding these to its module path automatically. Can you see why that might be failing?