| 317 | } |
| 318 | |
| 319 | cmValue cmFileSet::GetProperty(std::string const& prop) const |
| 320 | { |
| 321 | // Check for the properties with backtraces. |
| 322 | if (prop == propINCLUDE_DIRECTORIES) { |
| 323 | if (this->IncludeDirectories.empty()) { |
| 324 | return nullptr; |
| 325 | } |
| 326 | |
| 327 | static std::string output; |
| 328 | output = cmList::to_string(this->IncludeDirectories); |
| 329 | return cmValue(output); |
| 330 | } |
| 331 | |
| 332 | if (prop == propCOMPILE_OPTIONS) { |
| 333 | if (this->CompileOptions.empty()) { |
| 334 | return nullptr; |
| 335 | } |
| 336 | |
| 337 | static std::string output; |
| 338 | output = cmList::to_string(this->CompileOptions); |
| 339 | return cmValue(output); |
| 340 | } |
| 341 | |
| 342 | if (prop == propCOMPILE_DEFINITIONS) { |
| 343 | if (this->CompileDefinitions.empty()) { |
| 344 | return nullptr; |
| 345 | } |
| 346 | |
| 347 | static std::string output; |
| 348 | output = cmList::to_string(this->CompileDefinitions); |
| 349 | return cmValue(output); |
| 350 | } |
| 351 | |
| 352 | return this->Properties.GetPropertyValue(prop); |
| 353 | } |
nothing calls this directly
no test coverage detected