Browse Source

BUG: Apply patch from issue #6006.

Brad King 18 years ago
parent
commit
5e0dadbfb8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/cmInstallCommand.cxx

+ 2 - 1
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 \""