diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-05 21:05:22 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-23 15:46:23 (GMT) |
commit | 1f39ee5bebf66aac33e7e1fa1172c048c13dfd2d (patch) | |
tree | 4054230624728ba75b0e1f646c1fe52fa1cf818e /Source/cmInstallExportGenerator.cxx | |
parent | c259b8302648de1387e21e9ea907cd1a2cb49933 (diff) | |
download | CMake-1f39ee5bebf66aac33e7e1fa1172c048c13dfd2d.zip CMake-1f39ee5bebf66aac33e7e1fa1172c048c13dfd2d.tar.gz CMake-1f39ee5bebf66aac33e7e1fa1172c048c13dfd2d.tar.bz2 |
cmInstallExportGenerator: Require cmLocalGenerator, not cmMakefile.
Diffstat (limited to 'Source/cmInstallExportGenerator.cxx')
-rw-r--r-- | Source/cmInstallExportGenerator.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/cmInstallExportGenerator.cxx b/Source/cmInstallExportGenerator.cxx index 7f6aa4d..97b9405 100644 --- a/Source/cmInstallExportGenerator.cxx +++ b/Source/cmInstallExportGenerator.cxx @@ -34,15 +34,14 @@ cmInstallExportGenerator::cmInstallExportGenerator( const char* component, MessageLevel message, const char* filename, const char* name_space, - bool exportOld, - cmMakefile* mf) + bool exportOld) :cmInstallGenerator(destination, configurations, component, message) ,ExportSet(exportSet) ,FilePermissions(file_permissions) ,FileName(filename) ,Namespace(name_space) ,ExportOld(exportOld) - ,Makefile(mf) + ,LocalGenerator(0) { this->EFGen = new cmExportInstallFileGenerator(this); exportSet->AddInstallation(this); @@ -54,12 +53,18 @@ cmInstallExportGenerator::~cmInstallExportGenerator() delete this->EFGen; } +void cmInstallExportGenerator::Compute(cmLocalGenerator* lg) +{ + this->LocalGenerator = lg; +} + //---------------------------------------------------------------------------- void cmInstallExportGenerator::ComputeTempDir() { // Choose a temporary directory in which to generate the import // files to be installed. - this->TempDir = this->Makefile->GetCurrentBinaryDirectory(); + this->TempDir = + this->LocalGenerator->GetMakefile()->GetCurrentBinaryDirectory(); this->TempDir += cmake::GetCMakeFilesDirectory(); this->TempDir += "/Export"; if(this->Destination.empty()) |