MCPcopy Create free account
hub / github.com/Kitware/CMake / FinalizeTargetConfiguration

Method FinalizeTargetConfiguration

Source/cmTarget.cxx:2426–2450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2424}
2425
2426void cmTarget::FinalizeTargetConfiguration(cmBTStringRange compileDefinitions)
2427{
2428 if (this->GetType() == cmStateEnums::GLOBAL_TARGET) {
2429 return;
2430 }
2431
2432 if (!CheckLinkLibraryPattern(this->impl->LinkLibraries,
2433 this->GetMakefile()->GetCMakeInstance()) ||
2434 !CheckLinkLibraryPattern(this->impl->InterfaceLinkLibraries,
2435 this->GetMakefile()->GetCMakeInstance()) ||
2436 !CheckLinkLibraryPattern(this->impl->InterfaceLinkLibrariesDirect,
2437 this->GetMakefile()->GetCMakeInstance())) {
2438 return;
2439 }
2440
2441 this->AppendBuildInterfaceIncludes();
2442
2443 if (this->GetType() == cmStateEnums::INTERFACE_LIBRARY) {
2444 return;
2445 }
2446
2447 for (auto const& def : compileDefinitions) {
2448 this->InsertCompileDefinition(def);
2449 }
2450}
2451
2452void cmTarget::InsertInclude(BT<std::string> const& entry, bool before)
2453{

Callers 1

Calls 6

GetTypeMethod · 0.95
GetMakefileMethod · 0.95
CheckLinkLibraryPatternFunction · 0.85
GetCMakeInstanceMethod · 0.45

Tested by

no test coverage detected