From 5e0dadbfb86163888de894a7806d67f0549444d1 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 17 Dec 2007 15:20:06 -0500 Subject: BUG: Apply patch from issue #6006. --- Source/cmInstallCommand.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 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 \"" -- cgit v0.12