summaryrefslogtreecommitdiffstats
path: root/Source/cmExportCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-10-06 15:16:11 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-10-10 14:36:26 (GMT)
commit5fe5c32480a5acf26bd20e52a091cd63747ed77d (patch)
tree748ebca1ae42657e8ccea1910a8457200fb9969b /Source/cmExportCommand.cxx
parente383555838c2539eca11c43abfccba9fa41ca97d (diff)
downloadCMake-5fe5c32480a5acf26bd20e52a091cd63747ed77d.zip
CMake-5fe5c32480a5acf26bd20e52a091cd63747ed77d.tar.gz
CMake-5fe5c32480a5acf26bd20e52a091cd63747ed77d.tar.bz2
export(): Set a Makefile on the cmExportBuildFileGenerator.
This is better than the cmCommand, because the lifetime of that is not as useful, and it is only used to report an error anyway. In the next commit, the cmExportBuildFileGenerator will outlive the cmCommand.
Diffstat (limited to 'Source/cmExportCommand.cxx')
-rw-r--r--Source/cmExportCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExportCommand.cxx b/Source/cmExportCommand.cxx
index f335b8b..9d0d478 100644
--- a/Source/cmExportCommand.cxx
+++ b/Source/cmExportCommand.cxx
@@ -169,7 +169,7 @@ bool cmExportCommand
ebfg.SetNamespace(this->Namespace.GetCString());
ebfg.SetAppendMode(this->Append.IsEnabled());
ebfg.SetExports(&targets);
- ebfg.SetCommand(this);
+ ebfg.SetMakefile(this->Makefile);
ebfg.SetExportOld(this->ExportOld.IsEnabled());
cmGlobalGenerator *gg = this->Makefile->GetLocalGenerator()