# Specify conflicts for packages with CPack

**URL:** https://discourse.cmake.org/t/specify-conflicts-for-packages-with-cpack/6166
**Category:** Usage
**Created:** [July 28, 2022, 12:41pm UTC](https://discourse.cmake.org/t/specify-conflicts-for-packages-with-cpack/6166 "2022-07-28T12:41:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![martijntje](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/m/838e76/32.png) [@martijntje](https://discourse.cmake.org/u/martijntje)
#### Post date: [July 28, 2022, 12:41pm UTC](https://discourse.cmake.org/t/specify-conflicts-for-packages-with-cpack/6166/1 "2022-07-28T12:41:52Z")

</div>

I’m using CPack to generate packages. Some of these packages conflict with eachother, so only one of them can be installed at the same time. Since I’m generating debian packages, they support storing this information inside the package, but I’m having a hard time figuring out how to get CPack to add this option into the package.

What variable should I set to mark the package as conflicting with another package?

---

<div class="post-metadata">

### Author: ![erk](https://discourse.cmake.org/user_avatar/discourse.cmake.org/erk/32/114_2.png) [@erk](https://discourse.cmake.org/u/erk)
#### Post date: [July 28, 2022, 4:28pm UTC](https://discourse.cmake.org/t/specify-conflicts-for-packages-with-cpack/6166/2 "2022-07-28T16:28:52Z")

</div>

Have a look at CPack Deb specific variables, in this case:  
[CPACK\_DEBIAN\_PACKAGE\_CONFLICTS](https://cmake.org/cmake/help/latest/cpack_gen/deb.html#variable:CPACK_DEBIAN_PACKAGE_CONFLICTS)

---

<div class="post-metadata">

### Author: ![martijntje](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/m/838e76/32.png) [@martijntje](https://discourse.cmake.org/u/martijntje)
#### Post date: [August 1, 2022, 7:31am UTC](https://discourse.cmake.org/t/specify-conflicts-for-packages-with-cpack/6166/3 "2022-08-01T07:31:59Z")

</div>

Well that’s embarrassing, I completely missed there was a separate page for debian-specific options. That is exactly what I need. Thanks!
