# When is started build of target with dependency ?

**URL:** https://discourse.cmake.org/t/when-is-started-build-of-target-with-dependency/14259
**Category:** Usage
**Created:** [June 18, 2025, 7:23pm UTC](https://discourse.cmake.org/t/when-is-started-build-of-target-with-dependency/14259 "2025-06-18T19:23:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cmpeter](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/c/ecd19e/32.png) [@cmpeter](https://discourse.cmake.org/u/cmpeter)
#### Post date: [June 18, 2025, 7:23pm UTC](https://discourse.cmake.org/t/when-is-started-build-of-target-with-dependency/14259/1 "2025-06-18T19:23:13Z")

</div>

Hello,  
I have first\_target building executable binary and it’s CMakeLists.txt contains add\_custom\_command(TARGET first\_target POST\_BUILD…)  
Parent CMakeLists.txt contains second\_target which is dependent on first\_target. My question is:

Does building of second\_target begin after binary executable is linked or after custom command is executed ?
