Source: Remove redundant FileIsDirectory checks

This commit is contained in:
scivision
2023-09-18 23:11:15 -04:00
parent f5ff17fcf2
commit d49ea4a4d9
4 changed files with 6 additions and 12 deletions

View File

@@ -1837,8 +1837,7 @@ bool HandleDirectoryMode(std::vector<std::string> const& args,
}
// Make sure the name is a directory.
if (cmSystemTools::FileExists(dir) &&
!cmSystemTools::FileIsDirectory(dir)) {
if (cmSystemTools::FileExists(dir, true)) {
status.SetError(cmStrCat(args[0], " given non-directory \"", args[i],
"\" to install."));
return false;