This was missing for us for Xerces.
Currently, if the module finds version 3.2 with the includes in our first CMake Prefix, it can later still find the 3.1 libraries via the version-unspecific library name in a system folder.
Issue: #20882 Topic-rename: FindXercesC-NAMES_PER_DIR