diff options
author | KWSys Upstream <kwrobot@kitware.com> | 2020-04-09 11:30:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-04-09 11:34:08 (GMT) |
commit | 11d846b8ff84e9a669f5d3bb49dcbfb05574330c (patch) | |
tree | 68d8f52f59a0acc809f31b7e09d6ebee169670d3 | |
parent | c5635588adbfa0428ca738c3ed3e690ae058af37 (diff) | |
download | CMake-11d846b8ff84e9a669f5d3bb49dcbfb05574330c.zip CMake-11d846b8ff84e9a669f5d3bb49dcbfb05574330c.tar.gz CMake-11d846b8ff84e9a669f5d3bb49dcbfb05574330c.tar.bz2 |
KWSys 2020-04-09 (e798e567)
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit e798e567760aaa6b87c31035c3f74622ecdcb5b2 (master).
Upstream Shortlog
-----------------
Brad King (1):
41700ca4 SystemTools: Fix FileIsExecutable on Windows
-rw-r--r-- | SystemTools.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SystemTools.cxx b/SystemTools.cxx index 880b2d2..8ec3058 100644 --- a/SystemTools.cxx +++ b/SystemTools.cxx @@ -3010,7 +3010,11 @@ bool SystemTools::FileIsDirectory(const std::string& inName) bool SystemTools::FileIsExecutable(const std::string& name) { +#if defined(_WIN32) + return SystemTools::FileExists(name, true); +#else return !FileIsDirectory(name) && TestFileAccess(name, TEST_FILE_EXECUTE); +#endif } bool SystemTools::FileIsSymlink(const std::string& name) |