| 110 | } |
| 111 | |
| 112 | bool HandleFileSetTargetScopeValidation(cmExecutionStatus& status, |
| 113 | bool file_set_target_option_enabled, |
| 114 | std::string& file_set_target_name) |
| 115 | { |
| 116 | if (!file_set_target_option_enabled) { |
| 117 | status.SetError("required TARGET option is missing"); |
| 118 | return false; |
| 119 | } |
| 120 | |
| 121 | // Validate file set target scopes. |
| 122 | if (file_set_target_name.empty()) { |
| 123 | status.SetError("called with incorrect number of arguments " |
| 124 | "no value provided to the TARGET option"); |
| 125 | return false; |
| 126 | } |
| 127 | return true; |
| 128 | } |
| 129 | |
| 130 | bool HandleAndValidateFileSetTargetScopes(cmExecutionStatus& status, |
| 131 | bool file_set_target_option_enabled, |
no test coverage detected
searching dependent graphs…