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

Function SetPermissions

Source/cmFileCommand.cxx:3955–3964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3953}
3954
3955bool SetPermissions(std::string const& filename, mode_t perms,
3956 cmExecutionStatus& status)
3957{
3958 if (!cmSystemTools::SetPermissions(filename, perms)) {
3959 status.SetError("Failed to set permissions for " + filename);
3960 cmSystemTools::SetFatalErrorOccurred();
3961 return false;
3962 }
3963 return true;
3964}
3965
3966bool HandleChmodCommandImpl(std::vector<std::string> const& args, bool recurse,
3967 cmExecutionStatus& status)

Callers 15

ConfigureFileMethod · 0.85
SetPermissionsMethod · 0.85
InstallFileMethod · 0.85
MkdirFunction · 0.85
CopySingleFileMethod · 0.85
cmWriteFileCommandFunction · 0.85
HandleWriteImplFunction · 0.85
HandleChmodCommandImplFunction · 0.85
GenerateMethod · 0.85
PackageFilesMethod · 0.85
PackageFilesMethod · 0.85
CopyInstallScriptMethod · 0.85

Calls 1

SetErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…