# CPack: - Run preinstall target...

**URL:** https://discourse.cmake.org/t/cpack-run-preinstall-target/10187
**Category:** Usage
**Created:** [February 25, 2024, 4:59pm UTC](https://discourse.cmake.org/t/cpack-run-preinstall-target/10187 "2024-02-25T16:59:07Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [April 25, 2024, 1:24pm UTC](https://discourse.cmake.org/t/cpack-run-preinstall-target/10187/13 "2024-04-25T13:24:16Z")

</div>

The code in cpack that runs the preinstall build step is [here](https://gitlab.kitware.com/cmake/cmake/-/blob/v3.29.2/Source/CPack/cmCPackGenerator.cxx#L675-711). It currently has no option to show it on the terminal, but does capture and log the output to a file. If anyone is interested in adding a way to change that behavior, please open an issue to propose it.

---

_[View the full topic](https://discourse.cmake.org/t/cpack-run-preinstall-target/10187)._
