diff options
author | Brad King <brad.king@kitware.com> | 2020-04-09 11:34:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-04-09 11:34:08 (GMT) |
commit | 5abe64246d5b24593eb8dcf680cb817ba82896c9 (patch) | |
tree | 320676ecd3ed29e505d55173a4043f9a1797e2e8 /Source/kwsys | |
parent | 5a62d86f8b6aaefb1860edd012841f5948a22ff6 (diff) | |
parent | 11d846b8ff84e9a669f5d3bb49dcbfb05574330c (diff) | |
download | CMake-5abe64246d5b24593eb8dcf680cb817ba82896c9.zip CMake-5abe64246d5b24593eb8dcf680cb817ba82896c9.tar.gz CMake-5abe64246d5b24593eb8dcf680cb817ba82896c9.tar.bz2 |
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
KWSys 2020-04-09 (e798e567)
Diffstat (limited to 'Source/kwsys')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 880b2d2..8ec3058 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/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) |