def METHOD_NAME():
    link_line = ""
    import tempfile
    cwd = os.getcwd()
    with tempfile.TemporaryDirectory() as tmp_dir:
        os.chdir(tmp_dir)
        with open("CMakeLists.txt", "w") as f:
            f.write("cmake_minimum_required(VERSION 3.10)\nproject(DACE_findMPI)\nfind_package(MPI)\n")
        os.mkdir('build')
        os.chdir(os.path.join(tmp_dir, 'build'))
        os.system("cmake ..")
        os.system("cmake ..")
        script = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'intel_mkl_mpich.cmake')
        output = os.popen(f"cmake -C {script}")
        line = output.readline()
        while not line.startswith('--'):
            line = output.readline()
        link_line = line[2:].strip('\n')
        print(link_line, flush=True)
        os.chdir(cwd)
    libpath = IntelMKLScaLAPACKMPICH._find_mkl_lib_path()
    return [
        f"-L {libpath} -lmkl_scalapack_lp64 -Wl,--no-as-needed -lmkl_intel_lp64 -lmkl_gnu_thread -lmkl_core -lmkl_blacs_intelmpi_lp64 {link_line} -lgomp -lpthread -lm -ldl"
    ]