| 299 | } |
| 300 | |
| 301 | void cmSourceFile::SetProperty(std::string const& prop, cmValue value) |
| 302 | { |
| 303 | if (prop == propINCLUDE_DIRECTORIES) { |
| 304 | this->IncludeDirectories.clear(); |
| 305 | if (value) { |
| 306 | cmListFileBacktrace lfbt = this->Location.GetMakefile()->GetBacktrace(); |
| 307 | this->IncludeDirectories.emplace_back(value, lfbt); |
| 308 | } |
| 309 | } else if (prop == propCOMPILE_OPTIONS) { |
| 310 | this->CompileOptions.clear(); |
| 311 | if (value) { |
| 312 | cmListFileBacktrace lfbt = this->Location.GetMakefile()->GetBacktrace(); |
| 313 | this->CompileOptions.emplace_back(value, lfbt); |
| 314 | } |
| 315 | } else if (prop == propCOMPILE_DEFINITIONS) { |
| 316 | this->CompileDefinitions.clear(); |
| 317 | if (value) { |
| 318 | cmListFileBacktrace lfbt = this->Location.GetMakefile()->GetBacktrace(); |
| 319 | this->CompileDefinitions.emplace_back(value, lfbt); |
| 320 | } |
| 321 | } else { |
| 322 | this->Properties.SetProperty(prop, value); |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | void cmSourceFile::AppendProperty(std::string const& prop, |
| 327 | std::string const& value, bool asString) |
no test coverage detected