summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-29 19:04:29 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-29 19:04:29 (GMT)
commit27a67fb72f22bcff5007b45d96ed810405818833 (patch)
tree5aab2eccb41f5483c7211933023640268825d1fe /Source/cmInstallCommand.cxx
parent7001a88a746073a46200dde7c6613789cf4b9cc8 (diff)
downloadCMake-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.cxx6
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())
{