cmExportTryCompileFileGenerator: Evaluate genex with cmGeneratorTarget.
This commit is contained in:
parent
48f8b6acf3
commit
d945b36a93
|
@ -76,8 +76,12 @@ std::string cmExportTryCompileFileGenerator::FindTargets(
|
||||||
dummyHead.SetType(cmTarget::EXECUTABLE, "try_compile_dummy_exe");
|
dummyHead.SetType(cmTarget::EXECUTABLE, "try_compile_dummy_exe");
|
||||||
dummyHead.SetMakefile(tgt->GetMakefile());
|
dummyHead.SetMakefile(tgt->GetMakefile());
|
||||||
|
|
||||||
std::string result = cge->Evaluate(tgt->GetMakefile(), this->Config,
|
cmGeneratorTarget* gtgt =
|
||||||
false, &dummyHead, tgt, &dagChecker);
|
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();
|
const std::set<cmTarget const*> &allTargets = cge->GetAllTargetsSeen();
|
||||||
for(std::set<cmTarget const*>::const_iterator li = allTargets.begin();
|
for(std::set<cmTarget const*>::const_iterator li = allTargets.begin();
|
||||||
|
|
Loading…
Reference in New Issue