# Debugging RUNTIME\_DEPENDENCY\_SET

**URL:** https://discourse.cmake.org/t/debugging-runtime-dependency-set/14089
**Category:** Usage
**Created:** [May 14, 2025, 9:08am UTC](https://discourse.cmake.org/t/debugging-runtime-dependency-set/14089 "2025-05-14T09:08:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![KUGA2](https://discourse.cmake.org/user_avatar/discourse.cmake.org/kuga2/32/4968_2.png) [@KUGA2](https://discourse.cmake.org/u/KUGA2)
#### Post date: [May 14, 2025, 9:08am UTC](https://discourse.cmake.org/t/debugging-runtime-dependency-set/14089/1 "2025-05-14T09:08:03Z")

</div>

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/.. ☹ → missing symbols
