cmGeneratorTarget: Add GetLinkDirectories API.
This commit is contained in:
parent
cf69630e51
commit
bde277e811
|
@ -377,9 +377,9 @@ cmComputeLinkInformation
|
|||
|
||||
// Add the search path entries requested by the user to path ordering.
|
||||
this->OrderLinkerSearchPath
|
||||
->AddUserDirectories(this->Target->Target->GetLinkDirectories());
|
||||
->AddUserDirectories(this->Target->GetLinkDirectories());
|
||||
this->OrderRuntimeSearchPath
|
||||
->AddUserDirectories(this->Target->Target->GetLinkDirectories());
|
||||
->AddUserDirectories(this->Target->GetLinkDirectories());
|
||||
|
||||
// Set up the implicit link directories.
|
||||
this->LoadImplicitLinkInfo();
|
||||
|
@ -413,7 +413,7 @@ cmComputeLinkInformation
|
|||
// Construct a mask to not bother with this behavior for link
|
||||
// directories already specified by the user.
|
||||
std::vector<std::string> const& dirs =
|
||||
this->Target->Target->GetLinkDirectories();
|
||||
this->Target->GetLinkDirectories();
|
||||
this->OldLinkDirMask.insert(dirs.begin(), dirs.end());
|
||||
}
|
||||
|
||||
|
|
|
@ -1732,6 +1732,11 @@ cmListFileBacktrace cmGeneratorTarget::GetBacktrace() const
|
|||
return this->Target->GetBacktrace();
|
||||
}
|
||||
|
||||
const std::vector<std::string>&cmGeneratorTarget::GetLinkDirectories() const
|
||||
{
|
||||
return this->Target->GetLinkDirectories();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool cmGeneratorTarget::HaveWellDefinedOutputFiles() const
|
||||
{
|
||||
|
|
|
@ -184,6 +184,8 @@ public:
|
|||
|
||||
cmListFileBacktrace GetBacktrace() const;
|
||||
|
||||
const std::vector<std::string>& GetLinkDirectories() const;
|
||||
|
||||
/** Get the macro to define when building sources in this target.
|
||||
If no macro should be defined null is returned. */
|
||||
const char* GetExportMacro() const;
|
||||
|
|
|
@ -1052,7 +1052,7 @@ void cmLocalVisualStudio6Generator
|
|||
}
|
||||
std::vector<std::string>::const_iterator i;
|
||||
const std::vector<std::string>& libdirs =
|
||||
target->Target->GetLinkDirectories();
|
||||
target->GetLinkDirectories();
|
||||
for(i = libdirs.begin(); i != libdirs.end(); ++i)
|
||||
{
|
||||
std::string path = *i;
|
||||
|
|
Loading…
Reference in New Issue