| 324 | } |
| 325 | |
| 326 | void cmSourceFile::AppendProperty(std::string const& prop, |
| 327 | std::string const& value, bool asString) |
| 328 | { |
| 329 | if (prop == propINCLUDE_DIRECTORIES) { |
| 330 | if (!value.empty()) { |
| 331 | cmListFileBacktrace lfbt = this->Location.GetMakefile()->GetBacktrace(); |
| 332 | this->IncludeDirectories.emplace_back(value, lfbt); |
| 333 | } |
| 334 | } else if (prop == propCOMPILE_OPTIONS) { |
| 335 | if (!value.empty()) { |
| 336 | cmListFileBacktrace lfbt = this->Location.GetMakefile()->GetBacktrace(); |
| 337 | this->CompileOptions.emplace_back(value, lfbt); |
| 338 | } |
| 339 | } else if (prop == propCOMPILE_DEFINITIONS) { |
| 340 | if (!value.empty()) { |
| 341 | cmListFileBacktrace lfbt = this->Location.GetMakefile()->GetBacktrace(); |
| 342 | this->CompileDefinitions.emplace_back(value, lfbt); |
| 343 | } |
| 344 | } else { |
| 345 | this->Properties.AppendProperty(prop, value, asString); |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | cmValue cmSourceFile::GetPropertyForUser(std::string const& prop) |
| 350 | { |
nothing calls this directly
no test coverage detected