# Using CPackDeb.cmake's symbol splitting outside of CPack

**URL:** https://discourse.cmake.org/t/using-cpackdeb-cmakes-symbol-splitting-outside-of-cpack/9954
**Category:** Usage
**Created:** [January 28, 2024, 10:50pm UTC](https://discourse.cmake.org/t/using-cpackdeb-cmakes-symbol-splitting-outside-of-cpack/9954 "2024-01-28T22:50:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![anthonya](https://discourse.cmake.org/user_avatar/discourse.cmake.org/anthonya/32/4128_2.png) [@anthonya](https://discourse.cmake.org/u/anthonya)
#### Post date: [January 28, 2024, 10:50pm UTC](https://discourse.cmake.org/t/using-cpackdeb-cmakes-symbol-splitting-outside-of-cpack/9954/1 "2024-01-28T22:50:39Z")

</div>

Hey all,

I noticed the following functionality in CPack:

> <https://github.com/Kitware/CMake/blob/f434d650ee1b909ce11ff984aad20ffab6843221/Modules/Internal/CPack/CPackDeb.cmake#L213-L268>

Is there some way to use this functionality in a simple cmake install?

I currently know of `cmake --install build --strip`, but I don’t know of a way to also pull out the debug symbols into a separate file before stripping.

---

<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: [February 4, 2024, 7:39pm UTC](https://discourse.cmake.org/t/using-cpackdeb-cmakes-symbol-splitting-outside-of-cpack/9954/2 "2024-02-04T19:39:37Z")

</div>

CMake doesn’t model this right now, so I don’t think there’s a single “please separate out debuginfo from binaries” option to toggle. There may already be an issue to track, but a new one is fine too.
