summaryrefslogtreecommitdiffstats
path: root/Source/cmExportCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-15 13:32:32 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-10-15 13:32:32 (GMT)
commitebffbda4476aae1e89029f2e24fd76a22765205a (patch)
treeb03c5806968dd58a35635de71af9ab2323688b75 /Source/cmExportCommand.cxx
parent29b1e591152dc56c03ae2b6d6721d5b1c297505a (diff)
parentaf1f6987571b6f8298b03e184aa4aad23882d5c8 (diff)
downloadCMake-ebffbda4476aae1e89029f2e24fd76a22765205a.zip
CMake-ebffbda4476aae1e89029f2e24fd76a22765205a.tar.gz
CMake-ebffbda4476aae1e89029f2e24fd76a22765205a.tar.bz2
Merge topic 'fix-CMP0024-multiple-directories'
af1f698 CMP0024: Store the fact of included export in global generator.
Diffstat (limited to 'Source/cmExportCommand.cxx')
-rw-r--r--Source/cmExportCommand.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmExportCommand.cxx b/Source/cmExportCommand.cxx
index 422b038..f335b8b 100644
--- a/Source/cmExportCommand.cxx
+++ b/Source/cmExportCommand.cxx
@@ -172,7 +172,9 @@ bool cmExportCommand
ebfg.SetCommand(this);
ebfg.SetExportOld(this->ExportOld.IsEnabled());
- this->Makefile->AddExportedTargetsFile(fname);
+ cmGlobalGenerator *gg = this->Makefile->GetLocalGenerator()
+ ->GetGlobalGenerator();
+ gg->AddExportedTargetsFile(fname);
// Compute the set of configurations exported.
std::vector<std::string> configurationTypes;