Also search for libscotchmetisv5 and libscotchmetisv3.
On Debian these might be present instead of libscotchmetis, Without this patch CMake will run into the error:
-- Found PTScotch: /usr/lib/x86_64-linux-gnu/libscotch.so (found version "7.0.1")
-- Looking for METIS_PartGraphVKway
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
METIS_LIBRARY