diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-02 18:39:24 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-07 02:10:29 (GMT) |
commit | 6d8a125e4988d5cb269b3d1e29a6114ecd0c47a4 (patch) | |
tree | d938bac1f97e49eaf38de29f2a1b68de82bb5756 /Source | |
parent | 5f66900e71fdc33b40c46bf8a87b35d88d280769 (diff) | |
download | CMake-6d8a125e4988d5cb269b3d1e29a6114ecd0c47a4.zip CMake-6d8a125e4988d5cb269b3d1e29a6114ecd0c47a4.tar.gz CMake-6d8a125e4988d5cb269b3d1e29a6114ecd0c47a4.tar.bz2 |
cmQtAutoGenerators: Prefer a generator to access global generator.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index f1ba2f4..c619cdc 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -369,7 +369,7 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmLocalGenerator* lg, #if defined(_WIN32) && !defined(__CYGWIN__) bool usePRE_BUILD = false; - cmGlobalGenerator* gg = makefile->GetGlobalGenerator(); + cmGlobalGenerator* gg = lg->GetGlobalGenerator(); if(gg->GetName().find("Visual Studio") != std::string::npos) { cmGlobalVisualStudioGenerator* vsgg = @@ -396,7 +396,7 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmLocalGenerator* lg, std::vector<std::string> rcc_output; bool const isNinja = - makefile->GetGlobalGenerator()->GetName() == "Ninja"; + lg->GetGlobalGenerator()->GetName() == "Ninja"; if(isNinja #if defined(_WIN32) && !defined(__CYGWIN__) || usePRE_BUILD |