# Dependencies when using custom commands

**URL:** https://discourse.cmake.org/t/dependencies-when-using-custom-commands/10780
**Category:** Usage
**Created:** [May 2, 2024, 8:35am UTC](https://discourse.cmake.org/t/dependencies-when-using-custom-commands/10780 "2024-05-02T08:35:36Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [May 14, 2024, 10:28am UTC](https://discourse.cmake.org/t/dependencies-when-using-custom-commands/10780/6 "2024-05-14T10:28:29Z")

</div>

The example in question was added by @brad.king in [MR 8002](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8002), which was done in response to [this forum discussion](https://discourse.cmake.org/t/add-custom-command-with-target-dependency-doesnt-rebuild/7029).

---

_[View the full topic](https://discourse.cmake.org/t/dependencies-when-using-custom-commands/10780)._
