Debugging RUNTIME_DEPENDENCY_SET

Is there a flag (similar to CMAKE_FIND_DEBUG_MODE) to enable logging of RUNTIME_DEPENDENCY_SET?
Especially the resolution of dependencies?

I got a case, where I think it goes wrong:

State:
executable <-lib1.so ← lib2.so.
lib2.so is also in /lib/… but wrong version.
lddtree on built executable resolves to correct versions.(RPATH is set correctly in executable)

Now installing it with RUNTIME_DEPENDENCY_SET.
POST_EXCLUDE_REGEXES filters out /lib/…

  • Installed dir only contains executable and lib1.so.
  • lddtree on installed executable: lib2.so form /lib/.. :frowning: → missing symbols