summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallCommand.cxx
diff options
context:
space:
mode:
authorscivision <scivision@users.noreply.github.com>2023-09-19 03:11:15 (GMT)
committerscivision <scivision@users.noreply.github.com>2023-09-19 03:11:28 (GMT)
commitd49ea4a4d9d2efaa1321b224931ca0e5fea1cade (patch)
tree9e36f22b84f2be1aadd1af0984d6f2a62ddab2bf /Source/cmInstallCommand.cxx
parentf5ff17fcf29170541805e7fc7f4a74252fe39b10 (diff)
downloadCMake-d49ea4a4d9d2efaa1321b224931ca0e5fea1cade.zip
CMake-d49ea4a4d9d2efaa1321b224931ca0e5fea1cade.tar.gz
CMake-d49ea4a4d9d2efaa1321b224931ca0e5fea1cade.tar.bz2
Source: Remove redundant FileIsDirectory checks
Diffstat (limited to 'Source/cmInstallCommand.cxx')
-rw-r--r--Source/cmInstallCommand.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx
index 7f5f15b..1b47ec4 100644
--- a/Source/cmInstallCommand.cxx
+++ b/Source/cmInstallCommand.cxx
@@ -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;