| 294 | } |
| 295 | |
| 296 | void cmFileSet::AppendProperty(std::string const& prop, |
| 297 | std::string const& value, bool asString) |
| 298 | { |
| 299 | if (prop == propINCLUDE_DIRECTORIES) { |
| 300 | if (!value.empty()) { |
| 301 | cmListFileBacktrace lfbt = this->GetMakefile()->GetBacktrace(); |
| 302 | this->IncludeDirectories.emplace_back(value, lfbt); |
| 303 | } |
| 304 | } else if (prop == propCOMPILE_OPTIONS) { |
| 305 | if (!value.empty()) { |
| 306 | cmListFileBacktrace lfbt = this->GetMakefile()->GetBacktrace(); |
| 307 | this->CompileOptions.emplace_back(value, lfbt); |
| 308 | } |
| 309 | } else if (prop == propCOMPILE_DEFINITIONS) { |
| 310 | if (!value.empty()) { |
| 311 | cmListFileBacktrace lfbt = this->GetMakefile()->GetBacktrace(); |
| 312 | this->CompileDefinitions.emplace_back(value, lfbt); |
| 313 | } |
| 314 | } else { |
| 315 | this->Properties.AppendProperty(prop, value, asString); |
| 316 | } |
| 317 | } |
| 318 | |
| 319 | cmValue cmFileSet::GetProperty(std::string const& prop) const |
| 320 | { |
nothing calls this directly
no test coverage detected