diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-11 10:52:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-04-15 15:43:49 (GMT) |
commit | 0aec49132885be07e1d92a4a1db58f4c6c4c2844 (patch) | |
tree | ba5db3057c7431795a8aa9762f0cfbc5f252e406 /Source/cmMacroCommand.cxx | |
parent | 96f8c5f9a3bd60f553af054b43e06ce4864269e0 (diff) | |
download | CMake-0aec49132885be07e1d92a4a1db58f4c6c4c2844.zip CMake-0aec49132885be07e1d92a4a1db58f4c6c4c2844.tar.gz CMake-0aec49132885be07e1d92a4a1db58f4c6c4c2844.tar.bz2 |
Port cmCommand consumers to cmState.
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r-- | Source/cmMacroCommand.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx index b7cbae6..7ac4432 100644 --- a/Source/cmMacroCommand.cxx +++ b/Source/cmMacroCommand.cxx @@ -232,9 +232,8 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf, f->Functions = this->Functions; mf.RecordPolicies(f->Policies); std::string newName = "_" + this->Args[0]; - mf.GetCMakeInstance()->RenameCommand(this->Args[0], - newName); - mf.AddCommand(f); + mf.GetState()->RenameCommand(this->Args[0], newName); + mf.GetState()->AddCommand(f); // remove the function blocker now that the macro is defined mf.RemoveFunctionBlocker(this, lff); |