summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-04-09 12:08:01 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-04-09 12:08:08 (GMT)
commitdf543e37f1c60919c98bb11494458e5dedd72c11 (patch)
tree320676ecd3ed29e505d55173a4043f9a1797e2e8
parent5a62d86f8b6aaefb1860edd012841f5948a22ff6 (diff)
parent5abe64246d5b24593eb8dcf680cb817ba82896c9 (diff)
downloadCMake-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.cxx4
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)