export: Rename some variables to reflect content type.
This method is used with a list of languages.
This commit is contained in:
parent
7461d67cf3
commit
3429541e1c
@ -825,36 +825,36 @@ cmExportFileGenerator
|
|||||||
::SetImportLinkProperty(std::string const& suffix,
|
::SetImportLinkProperty(std::string const& suffix,
|
||||||
cmTarget* target,
|
cmTarget* target,
|
||||||
const char* propName,
|
const char* propName,
|
||||||
std::vector<std::string> const& libs,
|
std::vector<std::string> const& entries,
|
||||||
ImportPropertyMap& properties,
|
ImportPropertyMap& properties,
|
||||||
std::vector<std::string>& missingTargets
|
std::vector<std::string>& missingTargets
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// Skip the property if there are no libraries.
|
// Skip the property if there are no entries.
|
||||||
if(libs.empty())
|
if(entries.empty())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Construct the property value.
|
// Construct the property value.
|
||||||
std::string link_libs;
|
std::string link_entries;
|
||||||
const char* sep = "";
|
const char* sep = "";
|
||||||
for(std::vector<std::string>::const_iterator li = libs.begin();
|
for(std::vector<std::string>::const_iterator li = entries.begin();
|
||||||
li != libs.end(); ++li)
|
li != entries.end(); ++li)
|
||||||
{
|
{
|
||||||
// Separate this from the previous entry.
|
// Separate this from the previous entry.
|
||||||
link_libs += sep;
|
link_entries += sep;
|
||||||
sep = ";";
|
sep = ";";
|
||||||
|
|
||||||
std::string temp = *li;
|
std::string temp = *li;
|
||||||
this->AddTargetNamespace(temp, target, missingTargets);
|
this->AddTargetNamespace(temp, target, missingTargets);
|
||||||
link_libs += temp;
|
link_entries += temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Store the property.
|
// Store the property.
|
||||||
std::string prop = propName;
|
std::string prop = propName;
|
||||||
prop += suffix;
|
prop += suffix;
|
||||||
properties[prop] = link_libs;
|
properties[prop] = link_entries;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ protected:
|
|||||||
std::vector<std::string>& missingTargets);
|
std::vector<std::string>& missingTargets);
|
||||||
void SetImportLinkProperty(std::string const& suffix,
|
void SetImportLinkProperty(std::string const& suffix,
|
||||||
cmTarget* target, const char* propName,
|
cmTarget* target, const char* propName,
|
||||||
std::vector<std::string> const& libs,
|
std::vector<std::string> const& entries,
|
||||||
ImportPropertyMap& properties,
|
ImportPropertyMap& properties,
|
||||||
std::vector<std::string>& missingTargets);
|
std::vector<std::string>& missingTargets);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user