MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0008769 | CMake | CPack | public | 2009-03-19 11:37 | 2016-06-10 14:30 |
| Reporter | Derek Bruening | ||||
| Assigned To | Bill Hoffman | ||||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0008769: support different name for CPack tarball versus its top-level tar directory | ||||
| Description | I want my tarball to have a different name than its top-level directory. E.g., I want my tarball to expand to foo/ but be named Foo-Linux-1.3.3.tgz. It seems that this is not supported: while there are a billion CPack variables that claim to be the "install directory name", the only one that is actually used is CPACK_PACKAGE_FILE_NAME, which is also the name of the tarball: so I can't separate them. Looks like cmCPackGenerator::PrepareNames() in CMake/Source/CPack/cmCPackGenerator.cxx sets up the temp dir and uses CPACK_PACKAGE_FILE_NAME: so can't be changed. Perhaps I could add the foo/ layer during install and then SET(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0) but I use my install directories locally and don't want an extra layer there. By setting CPACK_PACKAGE_FILE_NAME to foo/ and then hacking presumably internal CPack variables like CPACK_TEMPORARY_PACKAGE_FILE_NAME I can get something like what I want but I have to hardcode the tarball file extension. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2009-03-19 11:37 | Derek Bruening | New Issue | |||
| 2009-03-22 21:57 | Bill Hoffman | Status | new => assigned | ||
| 2009-03-22 21:57 | Bill Hoffman | Assigned To | => Bill Hoffman | ||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041520 | |||
| 2016-06-10 14:27 | Kitware Robot | Status | assigned => resolved | ||
| 2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:30 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||