| 1067 | } |
| 1068 | |
| 1069 | bool cmMakefile::ValidateCustomCommand( |
| 1070 | cmCustomCommandLines const& commandLines) const |
| 1071 | { |
| 1072 | // TODO: More strict? |
| 1073 | auto const it = |
| 1074 | std::find_if(commandLines.begin(), commandLines.end(), |
| 1075 | [](cmCustomCommandLine const& cl) { |
| 1076 | return !cl.empty() && !cl[0].empty() && cl[0][0] == '"'; |
| 1077 | }); |
| 1078 | if (it != commandLines.end()) { |
| 1079 | this->IssueMessage( |
| 1080 | MessageType::FATAL_ERROR, |
| 1081 | cmStrCat("COMMAND may not contain literal quotes:\n ", (*it)[0], '\n')); |
| 1082 | return false; |
| 1083 | } |
| 1084 | return true; |
| 1085 | } |
| 1086 | |
| 1087 | cmTarget* cmMakefile::GetCustomCommandTarget( |
| 1088 | std::string const& target, cmObjectLibraryCommands objLibCommands, |
no test coverage detected