# RUNTIME\_DEPENDENCIES cannot find dll

**URL:** https://discourse.cmake.org/t/runtime-dependencies-cannot-find-dll/3782
**Category:** Code
**Created:** [July 19, 2021, 4:12pm UTC](https://discourse.cmake.org/t/runtime-dependencies-cannot-find-dll/3782 "2021-07-19T16:12:35Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![kyle.edwards](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/k/65b543/32.png) [@kyle.edwards](https://discourse.cmake.org/u/kyle.edwards)
#### Post date: [July 19, 2021, 7:32pm UTC](https://discourse.cmake.org/t/runtime-dependencies-cannot-find-dll/3782/4 "2021-07-19T19:32:01Z")

</div>

`DIRECTORIES` is more needed on Windows than on Linux and Mac because it has no equivalent to RPATH. Linux rarely needs `DIRECTORIES` (and warns you if it finds something in a `DIRECTORIES` argument), and on Mac it isn’t even used at all.

We deliberately made the decision to not consider the `PATH` variable in `file(GET_RUNTIME_DEPENDENCIES)`, because setting the `PATH` from outside the project could change the results of it. You can add `$<TARGET_DIR:qt6core>` to the `DIRECTORIES` argument, which should allow it to find it.

---

_[View the full topic](https://discourse.cmake.org/t/runtime-dependencies-cannot-find-dll/3782)._
