MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0014978 | CMake | CPack | public | 2014-06-17 18:08 | 2016-06-10 14:21 | |||||
Reporter | Clinton Stimpson | |||||||||
Assigned To | Domen Vrankar | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | Linux | OS | OS Version | |||||||
Product Version | CMake 3.0 | |||||||||
Target Version | Fixed in Version | CMake 3.4 | ||||||||
Summary | 0014978: cpack excludes empty directories with archive generators (and others?) | |||||||||
Description | Empty directories are not included in cpack generated archives/installers. | |||||||||
Steps To Reproduce | project(archive) set(CMAKE_INSTALL_BINARY_DIR bin) set(CPACK_PACKAGE_CONTACT me) set(CPACK_PACKAGING_INSTALL_PREFIX /opt/me) install(CODE " file(MAKE_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINARY_DIR}/userfiles) if(WIN32) execute_process(COMMAND icacls \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINARY_DIR}/userfiles /grant:r \"Users:(OI)(CI)(F)\") else() execute_process(COMMAND chmod ugo+rw \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINARY_DIR}/userfiles) endif() " ) include(CPack) ========= Run cmake, then cpack -G TGZ or ZIP. Open the archive, and you will see that the directory is not included. It is included for RPM, Deb and NSIS. | |||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2014-06-17 18:08 | Clinton Stimpson | New Issue | ||||||||
2015-09-14 10:27 | Clinton Stimpson | Relationship added | related to 0013009 | |||||||
2015-10-10 03:58 | Domen Vrankar | Assigned To | => Domen Vrankar | |||||||
2015-10-10 03:58 | Domen Vrankar | Status | new => assigned | |||||||
2016-02-09 23:03 | Clinton Stimpson | Status | assigned => resolved | |||||||
2016-02-09 23:03 | Clinton Stimpson | Fixed in Version | => CMake 3.4 | |||||||
2016-02-09 23:03 | Clinton Stimpson | Resolution | open => fixed | |||||||
2016-06-10 14:21 | Kitware Robot | Note Added: 0041260 | ||||||||
2016-06-10 14:21 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|