| 391 | } |
| 392 | |
| 393 | std::string cmFastbuildNormalTargetGenerator::ComputeDefines( |
| 394 | cmSourceFile const& srcFile) |
| 395 | { |
| 396 | std::string const language = srcFile.GetLanguage(); |
| 397 | std::set<std::string> defines; |
| 398 | cmGeneratorExpressionInterpreter genexInterpreter( |
| 399 | this->GetLocalGenerator(), Config, this->GeneratorTarget, language); |
| 400 | |
| 401 | if (auto compile_defs = srcFile.GetProperty(COMPILE_DEFINITIONS)) { |
| 402 | this->GetLocalGenerator()->AppendDefines( |
| 403 | defines, genexInterpreter.Evaluate(*compile_defs, COMPILE_DEFINITIONS)); |
| 404 | } |
| 405 | |
| 406 | std::string defPropName = "COMPILE_DEFINITIONS_"; |
| 407 | defPropName += cmSystemTools::UpperCase(Config); |
| 408 | if (auto config_compile_defs = srcFile.GetProperty(defPropName)) { |
| 409 | this->GetLocalGenerator()->AppendDefines( |
| 410 | defines, |
| 411 | genexInterpreter.Evaluate(*config_compile_defs, COMPILE_DEFINITIONS)); |
| 412 | } |
| 413 | |
| 414 | std::string definesString = this->GetDefines(language, Config); |
| 415 | LogMessage(cmStrCat("TARGET DEFINES = ", definesString)); |
| 416 | this->GetLocalGenerator()->JoinDefines(defines, definesString, language); |
| 417 | |
| 418 | LogMessage(cmStrCat("DEFINES = ", definesString)); |
| 419 | return definesString; |
| 420 | } |
| 421 | |
| 422 | void cmFastbuildNormalTargetGenerator::ComputePCH( |
| 423 | cmSourceFile const& srcFile, FastbuildObjectListNode& node, |
nothing calls this directly
no test coverage detected