GET_RUNTIME_DEPENDENCIES does not seem to work with MinGW

We don’t want recursive dependencies in our process.

I see, what I meant was that I don’t get the indirect dependencies, which are also necessary (for example myliblibceres.dlllibopenblas.dll.

These look like globs. You want regexes (though these are valid regexes, they’re not exactly what you might think they are).

True, I just checked if the outcome was what I expected.

Please file an issue asking for support.

Thanks, I will file an issue at https://gitlab.kitware.com/cmake/cmake/-/issues.