summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenerators.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-05-27 13:23:01 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-05-27 13:23:01 (GMT)
commitc12fc3573bd86122279467e662b7ec58c72b5ffa (patch)
tree8587222d7561ad92d900b670b4a8adc72d683074 /Source/cmQtAutoGenerators.cxx
parent94e4b5d2c36e541919ebabb8c7f8cca5abf36a09 (diff)
parent3b880a07417a0211001b8dfa721ec220e6d8d2e3 (diff)
downloadCMake-c12fc3573bd86122279467e662b7ec58c72b5ffa.zip
CMake-c12fc3573bd86122279467e662b7ec58c72b5ffa.tar.gz
CMake-c12fc3573bd86122279467e662b7ec58c72b5ffa.tar.bz2
Merge topic 'inject-state-snapshot'
3b880a07 cmLocalGenerator: Require a valid cmState::Snapshot in the ctor. e12afe76 cmState: Host some state from the cmGlobalGenerator. c7b79aa1 cmGlobalGenerator: Require a cmake instance in ctor. 01e1cd5c cmState: Move snapshot creation to the cmake instance.
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r--Source/cmQtAutoGenerators.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx
index add5e61..cbb06cd 100644
--- a/Source/cmQtAutoGenerators.cxx
+++ b/Source/cmQtAutoGenerators.cxx
@@ -1210,8 +1210,7 @@ bool cmQtAutoGenerators::Run(const std::string& targetDirectory,
cmake cm;
cm.SetHomeOutputDirectory(targetDirectory);
cm.SetHomeDirectory(targetDirectory);
- cmGlobalGenerator gg;
- gg.SetCMakeInstance(&cm);
+ cmGlobalGenerator gg(&cm);
cmLocalGenerator* lg = gg.MakeLocalGenerator();
lg->GetMakefile()->SetCurrentBinaryDirectory(targetDirectory);