# CPack component call order?

**URL:** https://discourse.cmake.org/t/cpack-component-call-order/5369
**Category:** Usage
**Created:** [April 4, 2022, 10:33pm UTC](https://discourse.cmake.org/t/cpack-component-call-order/5369 "2022-04-04T22:33:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![benthevining](https://discourse.cmake.org/user_avatar/discourse.cmake.org/benthevining/32/1924_2.png) [@benthevining](https://discourse.cmake.org/u/benthevining)
#### Post date: [April 4, 2022, 10:33pm UTC](https://discourse.cmake.org/t/cpack-component-call-order/5369/1 "2022-04-04T22:33:19Z")

</div>

Very simple question – should `cpack_add_component` be called before or after any `install()` commands that mention that `COMPONENT`?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [April 7, 2022, 3:09pm UTC](https://discourse.cmake.org/t/cpack-component-call-order/5369/2 "2022-04-07T15:09:39Z")

</div>

I don’t think it matters? It seems to just be some declarative information about it that gets handed to CPack. AFAIK, there’s no way for either to influence the other.
