diff options
author | Brad King <brad.king@kitware.com> | 2020-04-09 12:08:01 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-04-09 12:08:08 (GMT) |
commit | df543e37f1c60919c98bb11494458e5dedd72c11 (patch) | |
tree | 320676ecd3ed29e505d55173a4043f9a1797e2e8 | |
parent | 5a62d86f8b6aaefb1860edd012841f5948a22ff6 (diff) | |
parent | 5abe64246d5b24593eb8dcf680cb817ba82896c9 (diff) | |
download | CMake-df543e37f1c60919c98bb11494458e5dedd72c11.zip CMake-df543e37f1c60919c98bb11494458e5dedd72c11.tar.gz CMake-df543e37f1c60919c98bb11494458e5dedd72c11.tar.bz2 |
Merge topic 'update-kwsys'
5abe64246d Merge branch 'upstream-KWSys' into update-kwsys
11d846b8ff KWSys 2020-04-09 (e798e567)
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4588
-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) |