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

I believe that 9.1.0 had issues with the no-component variant of find_package(VTK). Can you try adding COMPONENTS … to your find_package(VTK) call that list the components you need?