diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2014-03-01 23:51:42 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2014-03-01 23:51:42 (GMT) |
commit | 642fa25da095b346d559ad39624eda79b0bd2ff8 (patch) | |
tree | 9d0dcaa3090d92ec1478d6ca03f7967628cd262e /Source/CPack/WiX/cmCPackWIXGenerator.cxx | |
parent | 378eb5b712bb8f131e62aa343e3ec27d446dc098 (diff) | |
download | CMake-642fa25da095b346d559ad39624eda79b0bd2ff8.zip CMake-642fa25da095b346d559ad39624eda79b0bd2ff8.tar.gz CMake-642fa25da095b346d559ad39624eda79b0bd2ff8.tar.bz2 |
CPackWIX: support installation of empty directories
Diffstat (limited to 'Source/CPack/WiX/cmCPackWIXGenerator.cxx')
-rw-r--r-- | Source/CPack/WiX/cmCPackWIXGenerator.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/CPack/WiX/cmCPackWIXGenerator.cxx b/Source/CPack/WiX/cmCPackWIXGenerator.cxx index 1ba43b3..a385e40 100644 --- a/Source/CPack/WiX/cmCPackWIXGenerator.cxx +++ b/Source/CPack/WiX/cmCPackWIXGenerator.cxx @@ -814,6 +814,16 @@ void cmCPackWIXGenerator::AddDirectoryAndFileDefinitons( cmsys::Directory dir; dir.Load(topdir.c_str()); + if(dir.GetNumberOfFiles() == 2) + { + std::string componentId = fileDefinitions.EmitComponentCreateFolder( + directoryId, GenerateGUID()); + + featureDefinitions.EmitComponentRef(componentId); + + return; + } + for(size_t i = 0; i < dir.GetNumberOfFiles(); ++i) { std::string fileName = dir.GetFile(static_cast<unsigned long>(i)); |