summaryrefslogtreecommitdiffstats
path: root/Source/cmExportFileGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-09-15 23:07:03 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-05 16:42:27 (GMT)
commit48f8b6acf3a8083b5a52bbe1ec3adc10c515d710 (patch)
tree0e2770cbdae199c169305928df0886bbb6aab4ad /Source/cmExportFileGenerator.cxx
parentf2791da132a42cb71384065b340ae212679fc336 (diff)
downloadCMake-48f8b6acf3a8083b5a52bbe1ec3adc10c515d710.zip
CMake-48f8b6acf3a8083b5a52bbe1ec3adc10c515d710.tar.gz
CMake-48f8b6acf3a8083b5a52bbe1ec3adc10c515d710.tar.bz2
cmExportFileGenerator: Evaluate genex with cmGeneratorTarget.
Diffstat (limited to 'Source/cmExportFileGenerator.cxx')
-rw-r--r--Source/cmExportFileGenerator.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx
index 9a7d73f..881acee 100644
--- a/Source/cmExportFileGenerator.cxx
+++ b/Source/cmExportFileGenerator.cxx
@@ -436,7 +436,9 @@ void cmExportFileGenerator::PopulateIncludeDirectoriesInterface(
ImportPropertyMap &properties,
std::vector<std::string> &missingTargets)
{
- cmTarget *target = tei->Target;
+ cmGeneratorTarget *target = tei->Target->GetMakefile()
+ ->GetGlobalGenerator()
+ ->GetGeneratorTarget(tei->Target);
assert(preprocessRule == cmGeneratorExpression::InstallInterface);
const char *propName = "INTERFACE_INCLUDE_DIRECTORIES";
@@ -450,12 +452,12 @@ void cmExportFileGenerator::PopulateIncludeDirectoriesInterface(
true);
this->ReplaceInstallPrefix(dirs);
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(dirs);
- std::string exportDirs = cge->Evaluate(target->GetMakefile(), "",
- false, target);
+ std::string exportDirs = cge->Evaluate(target->Target->GetMakefile(), "",
+ false, target->Target);
if (cge->GetHadContextSensitiveCondition())
{
- cmMakefile* mf = target->GetMakefile();
+ cmMakefile* mf = target->Target->GetMakefile();
std::ostringstream e;
e << "Target \"" << target->GetName() << "\" is installed with "
"INCLUDES DESTINATION set to a context sensitive path. Paths which "
@@ -486,10 +488,10 @@ void cmExportFileGenerator::PopulateIncludeDirectoriesInterface(
true);
if (!prepro.empty())
{
- this->ResolveTargetsInGeneratorExpressions(prepro, target,
+ this->ResolveTargetsInGeneratorExpressions(prepro, target->Target,
missingTargets);
- if (!checkInterfaceDirs(prepro, target, propName))
+ if (!checkInterfaceDirs(prepro, target->Target, propName))
{
return;
}