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

Function HandleInstallMode

Source/cmSetPropertyCommand.cxx:983–1005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981}
982
983bool HandleInstallMode(cmExecutionStatus& status,
984 std::set<std::string> const& names,
985 std::string const& propertyName,
986 std::string const& propertyValue, bool appendAsString,
987 bool appendMode, bool remove)
988{
989 cmake* cm = status.GetMakefile().GetCMakeInstance();
990
991 for (std::string const& name : names) {
992 if (cmInstalledFile* file =
993 cm->GetOrCreateInstalledFile(&status.GetMakefile(), name)) {
994 if (!HandleInstall(file, status.GetMakefile(), propertyName,
995 propertyValue, appendAsString, appendMode, remove)) {
996 return false;
997 }
998 } else {
999 status.SetError(cmStrCat(
1000 "given INSTALL name that could not be found or created: ", name));
1001 return false;
1002 }
1003 }
1004 return true;
1005}
1006
1007bool HandleInstall(cmInstalledFile* file, cmMakefile& makefile,
1008 std::string const& propertyName,

Callers 1

cmSetPropertyCommandFunction · 0.70

Calls 6

HandleInstallFunction · 0.85
cmStrCatFunction · 0.70
GetCMakeInstanceMethod · 0.45
GetMakefileMethod · 0.45
SetErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…