summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-12-17 20:20:06 (GMT)
committerBrad King <brad.king@kitware.com>2007-12-17 20:20:06 (GMT)
commit5e0dadbfb86163888de894a7806d67f0549444d1 (patch)
tree178d919a77e17d836527e038aa43fe4f0b39e75f /Source/cmInstallCommand.cxx
parent58f671bb1ca501726afbffa748d0ee72375bba05 (diff)
downloadCMake-5e0dadbfb86163888de894a7806d67f0549444d1.zip
CMake-5e0dadbfb86163888de894a7806d67f0549444d1.tar.gz
CMake-5e0dadbfb86163888de894a7806d67f0549444d1.tar.bz2
BUG: Apply patch from issue #6006.
Diffstat (limited to 'Source/cmInstallCommand.cxx')
-rw-r--r--Source/cmInstallCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx
index 78ce89e..a2e3764 100644
--- a/Source/cmInstallCommand.cxx
+++ b/Source/cmInstallCommand.cxx
@@ -925,7 +925,8 @@ cmInstallCommand::HandleDirectoryMode(std::vector<std::string> const& args)
}
// Make sure the name is a directory.
- if(!cmSystemTools::FileIsDirectory(dir.c_str()))
+ if(cmSystemTools::FileExists(dir.c_str()) &&
+ !cmSystemTools::FileIsDirectory(dir.c_str()))
{
cmOStringStream e;
e << args[0] << " given non-directory \""