diff options
author | Brad King <brad.king@kitware.com> | 2006-08-29 19:04:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-08-29 19:04:29 (GMT) |
commit | 27a67fb72f22bcff5007b45d96ed810405818833 (patch) | |
tree | 5aab2eccb41f5483c7211933023640268825d1fe /Source/cmInstallCommand.cxx | |
parent | 7001a88a746073a46200dde7c6613789cf4b9cc8 (diff) | |
download | CMake-27a67fb72f22bcff5007b45d96ed810405818833.zip CMake-27a67fb72f22bcff5007b45d96ed810405818833.tar.gz CMake-27a67fb72f22bcff5007b45d96ed810405818833.tar.bz2 |
ENH: Add support to INSTALL(DIRECTORY) to install an empty directory. This addresses bug#3572.
Diffstat (limited to 'Source/cmInstallCommand.cxx')
-rw-r--r-- | Source/cmInstallCommand.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx index a5c0408..9cb37c9 100644 --- a/Source/cmInstallCommand.cxx +++ b/Source/cmInstallCommand.cxx @@ -1000,6 +1000,12 @@ cmInstallCommand::HandleDirectoryMode(std::vector<std::string> const& args) } } + // Support installing an empty directory. + if(dirs.empty() && destination) + { + dirs.push_back(""); + } + // Check if there is something to do. if(dirs.empty()) { |