summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-06-15 12:57:58 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-06-15 12:58:06 (GMT)
commit05546d695e2d98e420009bec2ce62253dffa3c60 (patch)
tree3a1d12784f81e94783653c4060721c8c8de9d9a8 /Source
parent594fda9c234915669dbfe61bec7c59250e747b4a (diff)
parentcc02ced530a40f98c7bf643cd91e4b811a0e3f7a (diff)
downloadCMake-05546d695e2d98e420009bec2ce62253dffa3c60.zip
CMake-05546d695e2d98e420009bec2ce62253dffa3c60.tar.gz
CMake-05546d695e2d98e420009bec2ce62253dffa3c60.tar.bz2
Merge topic 'revert-find_program-exe-no-read' into release-3.18
cc02ced530 find_program: Revert "Find programs that are executable but not readable" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4871
Diffstat (limited to 'Source')
-rw-r--r--Source/cmFindProgramCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindProgramCommand.cxx b/Source/cmFindProgramCommand.cxx
index 599b1d2..4b88bea 100644
--- a/Source/cmFindProgramCommand.cxx
+++ b/Source/cmFindProgramCommand.cxx
@@ -85,7 +85,7 @@ struct cmFindProgramHelper
this->TestNameExt = cmStrCat(name, ext);
this->TestPath =
cmSystemTools::CollapseFullPath(this->TestNameExt, path);
- bool exists = cmSystemTools::FileIsExecutable(this->TestPath);
+ bool exists = cmSystemTools::FileExists(this->TestPath, true);
exists ? this->DebugSearches.FoundAt(this->TestPath)
: this->DebugSearches.FailedAt(this->TestPath);
if (exists) {