diff options
author | Brad King <brad.king@kitware.com> | 2020-04-10 13:48:15 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-04-10 13:49:50 (GMT) |
commit | bf120819c4054def9dfb1433dc4d33971b92edd7 (patch) | |
tree | 7f1bc84267f3525834d855bad48b0cee4cfede6f /Source | |
parent | 9ef0f35670c2f308b562b7042abb90fd0ae59160 (diff) | |
parent | 86e6349ef7356866704ab2a5aa439fd4d201cdd5 (diff) | |
download | CMake-bf120819c4054def9dfb1433dc4d33971b92edd7.zip CMake-bf120819c4054def9dfb1433dc4d33971b92edd7.tar.gz CMake-bf120819c4054def9dfb1433dc4d33971b92edd7.tar.bz2 |
Merge topic 'find_program-exe-no-read'
86e6349ef7 find_program: Find programs that are executable but not readable
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4571
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmFindProgramCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindProgramCommand.cxx b/Source/cmFindProgramCommand.cxx index 4b88bea..599b1d2 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::FileExists(this->TestPath, true); + bool exists = cmSystemTools::FileIsExecutable(this->TestPath); exists ? this->DebugSearches.FoundAt(this->TestPath) : this->DebugSearches.FailedAt(this->TestPath); if (exists) { |