mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Source: Remove redundant FileIsDirectory checks
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user