That does not work either.
But I added a "." behind the PATH like so
cmake -D CMAKE_INSTALL_PREFIX=~/Telemac/v8p0r1/optionals/metis-5.1.0/build . -DSHARED=TRUE

which results in start of building but then coming to a similar error again. Attached is the log file and following the command line output.
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for getline
-- Looking for getline - found
CMake Error at /home/clemens/Telemac/v8p0r1/optionals/metis-5.1.0/CMakeFiles/CMakeTmp/CMakeLists.txt:12 (add_executable):
  Cannot find source file:
    GKlib/conf/check_thread_storage.c
  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx
CMake Error at /home/clemens/Telemac/v8p0r1/optionals/metis-5.1.0/CMakeFiles/CMakeTmp/CMakeLists.txt:12 (add_executable):
  No SOURCES given to target: cmTC_f5689
CMake Error at GKlib/GKlibSystem.cmake:110 (try_compile):
  Failed to generate test project build system.
Call Stack (most recent call first):
  CMakeLists.txt:20 (include)
-- Configuring incomplete, errors occurred!
See also "/home/clemens/Telemac/v8p0r1/optionals/metis-5.1.0/CMakeFiles/CMakeOutput.log".
Attachments:
    CMakeOutput.txt (51KB) This is a bug from metis.
    In the metsi folder change the line containing set(GKLIB_PATH...) by
    set(GKLIB_PATH "${CMAKE_CURRENT_SOURCE_DIR}/GKlib")

    Hopefully that should do the trick That did the trick. Thanks.
    Since I just got a libmetis.so file and no libmetis.a I changed that in my .cfg file, but now I am facing an issue with Nestor.
    I can remember I had that once as well but not sure how I came over it.
    Attached is my log file. Attachments:
      compile_20...3-14.txt (404KB) You are missing the option -cpp in your configuration in cmd_obj.
      Add it and rerun compileTELEMAC.py --clean
      That should do the trick. Thanks I missed that.
      Just compiled and running a example case (litoral) to test the compilation. I got the the result files in scalar and parallel, but still get an error, which is related to python.
      from scipy.spatial import cKDTree
      ImportError: No module named scipy.spatial

      Would it help to reinstall scipy?

      The XXIXth TELEMAC User Conference will take place at the BAW in Karlsruhe, Germany, on the 11-13 October 2023 ! Here is the link to register and send your article if you wish to  [ ... ]