mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-23 08:18:37 -05:00
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
This commit is contained in:
committed by
Brad King
parent
c5635588ad
commit
11d846b8ff
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user