BUG: Apply patch from issue #6006.

This commit is contained in:
Brad King 2007-12-17 15:20:06 -05:00
parent 58f671bb1c
commit 5e0dadbfb8

View File

@ -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 \""