# \#cpack:archive

**URL:** https://discourse.cmake.org/tag/cpack-archive/52.md

[Latest](https://discourse.cmake.org/latest.md) · [Categories](https://discourse.cmake.org/categories.md) · [Tags](https://discourse.cmake.org/tags.md)

---

## [CPack archive changing destination directory permissions](https://discourse.cmake.org/t/cpack-archive-changing-destination-directory-permissions/9919)

<div class="topic-metadata">

**Author:** [@shunkica](https://discourse.cmake.org/u/shunkica)\
**Replies:** 6\
**Last updated:** [February 4, 2024, 1:35pm UTC](https://discourse.cmake.org/t/cpack-archive-changing-destination-directory-permissions/9919 "2024-02-04T13:35:13Z")

</div>

I am trying to use the STGZ cpack generator to distribute my library via a shell script. The library installs into /usr/local/lib/ When I run the cpack generated shell script with the /usr/local prefix, it changes the …

---

## [Adding filename cache for Archive Generator in ALL\_COMPONENTS\_IN\_ONE](https://discourse.cmake.org/t/adding-filename-cache-for-archive-generator-in-all-components-in-one/9007)

<div class="topic-metadata">

**Author:** [@thelta](https://discourse.cmake.org/u/thelta)\
**Replies:** 1\
**Last updated:** [September 19, 2023, 1:47pm UTC](https://discourse.cmake.org/t/adding-filename-cache-for-archive-generator-in-all-components-in-one/9007 "2023-09-19T13:47:25Z")

</div>

In our monorepo, for every target we create a component for executable/shared library itself and another component for its runtime dependencies. We are doing runtime dependency installation via install(RUNTIME\_DEPENDENCY…

---

## [CPack missed dlls copied by windeployqt](https://discourse.cmake.org/t/cpack-missed-dlls-copied-by-windeployqt/7873)

<div class="topic-metadata">

**Author:** [@Joseph](https://discourse.cmake.org/u/Joseph)\
**Replies:** 7\
**Last updated:** [April 26, 2023, 11:10am UTC](https://discourse.cmake.org/t/cpack-missed-dlls-copied-by-windeployqt/7873 "2023-04-26T11:10:35Z")

</div>

In my Qt-based project, I deploy qt dlls by following steps: Run my custom cmake script by install(SCRIPT My cmake script runs windeployqt during installation, and the working directory is set to CMAKE\_INSTALL\_PREFIX s…

---

## [Installer Has Qt Deploy Fixes But Archive Does Not](https://discourse.cmake.org/t/installer-has-qt-deploy-fixes-but-archive-does-not/7594)

<div class="topic-metadata">

**Author:** [@JohnRED](https://discourse.cmake.org/u/JohnRED)\
**Replies:** 2\
**Last updated:** [March 8, 2023, 6:18pm UTC](https://discourse.cmake.org/t/installer-has-qt-deploy-fixes-but-archive-does-not/7594 "2023-03-08T18:18:04Z")

</div>

I have a Qt application that runs the deploy command during installation and packaging. This works correctly when generating a Wix installer. However, when trying to create an archive, e.g. 7z, command is ran but the f…

---

## [How to exclude "Unspecified" components from CPack archive generator?](https://discourse.cmake.org/t/how-to-exclude-unspecified-components-from-cpack-archive-generator/6673)

<div class="topic-metadata">

**Author:** [@mojca](https://discourse.cmake.org/u/mojca)\
**Replies:** 8\
**Last updated:** [October 20, 2022, 5:46pm UTC](https://discourse.cmake.org/t/how-to-exclude-unspecified-components-from-cpack-archive-generator/6673 "2022-10-20T17:46:07Z")

</div>

I would like to exclude nearly all the files installed by external projects (that are otherwise needed as dependencies) when installing a project and when creating the packages, but I cannot quite figure out how to do th…

---

## [Controlling archive creation with CPack](https://discourse.cmake.org/t/controlling-archive-creation-with-cpack/4570)

<div class="topic-metadata">

**Author:** [@jjELT](https://discourse.cmake.org/u/jjELT)\
**Replies:** 0\
**Last updated:** [November 29, 2021, 11:56am UTC](https://discourse.cmake.org/t/controlling-archive-creation-with-cpack/4570 "2021-11-29T11:56:03Z")

</div>

Introduction I read the CPack tutorials, but did not find a solution for my specific problem. I have a project with an optional target I add with the EXCLUDE\_FROM\_ALL option # This is an optional target. add\_executable…
