| 981 | } |
| 982 | |
| 983 | bool 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 | |
| 1007 | bool HandleInstall(cmInstalledFile* file, cmMakefile& makefile, |
| 1008 | std::string const& propertyName, |
no test coverage detected
searching dependent graphs…