summaryrefslogtreecommitdiff
path: root/Source/cmExportTryCompileFileGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-09-16 01:08:49 +0200
committerStephen Kelly <steveire@gmail.com>2015-10-05 18:42:27 +0200
commitd945b36a93ab9f935c4e369d5c75be8b47d48f7a (patch)
treebf9d4e93b4fc82091e8af07429505cb40ae3945f /Source/cmExportTryCompileFileGenerator.cxx
parent48f8b6acf3a8083b5a52bbe1ec3adc10c515d710 (diff)
downloadcmake-d945b36a93ab9f935c4e369d5c75be8b47d48f7a.tar.gz
cmExportTryCompileFileGenerator: Evaluate genex with cmGeneratorTarget.
Diffstat (limited to 'Source/cmExportTryCompileFileGenerator.cxx')
-rw-r--r--Source/cmExportTryCompileFileGenerator.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmExportTryCompileFileGenerator.cxx b/Source/cmExportTryCompileFileGenerator.cxx
index ba66531fd2..026584c84a 100644
--- a/Source/cmExportTryCompileFileGenerator.cxx
+++ b/Source/cmExportTryCompileFileGenerator.cxx
@@ -76,8 +76,12 @@ std::string cmExportTryCompileFileGenerator::FindTargets(
dummyHead.SetType(cmTarget::EXECUTABLE, "try_compile_dummy_exe");
dummyHead.SetMakefile(tgt->GetMakefile());
- std::string result = cge->Evaluate(tgt->GetMakefile(), this->Config,
- false, &dummyHead, tgt, &dagChecker);
+ cmGeneratorTarget* gtgt =
+ tgt->GetMakefile()->GetGlobalGenerator()->GetGeneratorTarget(tgt);
+
+ std::string result = cge->Evaluate(gtgt->Target->GetMakefile(), this->Config,
+ false, &dummyHead,
+ gtgt->Target, &dagChecker);
const std::set<cmTarget const*> &allTargets = cge->GetAllTargetsSeen();
for(std::set<cmTarget const*>::const_iterator li = allTargets.begin();