The source code of metis can be found in the TELEMAC-MASCARET sources in <root>/optionals/metis-5.1.0
Otherwise you can download them from here
In the metis folder type the following commands:
Replace <install_path>
by the path where you want to install metis.
<install_path>
should contain:
a folder lib
that contains the file libmetis.a
Replace the cmake line by: