cmInstallExportGenerator: Require cmLocalGenerator, not cmMakefile.

This commit is contained in:
Stephen Kelly
2015-08-05 23:05:22 +02:00
parent c259b83026
commit 1f39ee5beb
4 changed files with 17 additions and 10 deletions
+2 -2
View File
@@ -72,8 +72,8 @@ bool cmExportInstallFileGenerator::GenerateMainFile(std::ostream& os)
// Set an _IMPORT_PREFIX variable for import location properties
// to reference if they are relative to the install prefix.
std::string installPrefix =
this->IEGen->GetMakefile()->GetSafeDefinition("CMAKE_INSTALL_PREFIX");
std::string installPrefix = this->IEGen->GetLocalGenerator()
->GetMakefile()->GetSafeDefinition("CMAKE_INSTALL_PREFIX");
std::string const& expDest = this->IEGen->GetDestination();
if(cmSystemTools::FileIsFullPath(expDest))
{