View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014978CMakeCPackpublic2014-06-17 18:082016-06-10 14:21
ReporterClinton Stimpson 
Assigned ToDomen Vrankar 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSOS Version
Product VersionCMake 3.0 
Target VersionFixed in VersionCMake 3.4 
Summary0014978: cpack excludes empty directories with archive generators (and others?)
DescriptionEmpty directories are not included in cpack generated archives/installers.
Steps To Reproduceproject(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.
TagsNo tags attached.
Attached Files

 Relationships
related to 0013009closedRaffi Enficiaud CPack DEB generator ignores top-level directories which do not contain a file 

  Notes
(0041260)
Kitware Robot (administrator)
2016-06-10 14:21

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 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


Copyright © 2000 - 2018 MantisBT Team