MCPcopy Create free account
hub / github.com/Kitware/CMake / FileIsExecutable

Method FileIsExecutable

Source/cmFindProgramCommand.cxx:112–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 });
111 }
112 bool FileIsExecutable(std::string const& file) const
113 {
114 if (!this->FileIsExecutableCMP0109(file)) {
115 return false;
116 }
117#ifdef _WIN32
118 // Pretend the Windows "python" app installer alias does not exist.
119 if (cmSystemTools::LowerCase(file).find("/windowsapps/python") !=
120 std::string::npos) {
121 std::string dest;
122 if (cmSystemTools::ReadSymlink(file, dest) &&
123 cmHasLiteralSuffix(dest, "\\AppInstallerPythonRedirector.exe")) {
124 return false;
125 }
126 }
127#endif
128 return true;
129 }
130 bool FileIsExecutableCMP0109(std::string const& file) const
131 {
132 switch (this->PolicyCMP0109) {

Callers 1

CheckDirectoryForNameMethod · 0.95

Calls 3

cmHasLiteralSuffixFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected